diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-18 02:47:00 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-18 02:47:00 +0000 |
commit | c1fa0d7d44304dce97d8f48862d00b55f9fe8037 (patch) | |
tree | b2f8ac204571dd3887686dc7aeb7e50d5a628859 /crawl-ref/source/libgui.cc | |
parent | 2d552e655e12190228e8f737961ccf33875791a5 (diff) | |
download | crawl-ref-c1fa0d7d44304dce97d8f48862d00b55f9fe8037.tar.gz crawl-ref-c1fa0d7d44304dce97d8f48862d00b55f9fe8037.zip |
[1838120] Ghosts change icon when saving and restoring in tile version
[1843058] Player info too close to map in tile version
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3296 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r-- | crawl-ref/source/libgui.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc index 80a92dfd74..b8c5ab4881 100644 --- a/crawl-ref/source/libgui.cc +++ b/crawl-ref/source/libgui.cc @@ -452,6 +452,9 @@ void GmapDisplay(int linex, int liney) /* initialize routines */ static void do_layout() { + // buffer between map region and stat region + const int map_stat_buffer = 5; + #define LAYER_NML 0 #define LAYER_CRT 1 #define LAYER_XMAP 2 @@ -469,7 +472,8 @@ static void do_layout() win_main->placeRegion(region_msg, LAYER_NML, region_tile, PLACE_BOTTOM, tm, tm, tm, tm); - int sx = std::max(region_msg->ex + region_msg->dx, region_tile->ex); + int sx = std::max(region_msg->ex + region_msg->dx, region_tile->ex) + + map_stat_buffer; int sy = 0; win_main->placeRegion(region_stat, LAYER_NML, sx, sy); |