summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilesdl.cc
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-09-28 02:01:19 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-09-28 02:01:19 -0700
commitb66e6dabd05261e01850474ea0dc8461364b96c2 (patch)
tree264322ef166b522e36b302e208815bde040bb422 /crawl-ref/source/tilesdl.cc
parent176d5bc49707560ad531942eefafd7ac9335e34c (diff)
downloadcrawl-ref-b66e6dabd05261e01850474ea0dc8461364b96c2.tar.gz
crawl-ref-b66e6dabd05261e01850474ea0dc8461364b96c2.zip
tilesdl.cc: fix layout bug and crash with certain resolutions
This one was a pain to hunt down, but it was a surprisingly simple fix. Can you believe an X value was used where a Y value was needed? Anyway, the bug was that with certain resolutions (i.e. 1440x900), the game would crash once the message list needed to be rendered. And the layout was also completely wrong if you did something like an abnormal resolution of 800x850, which shows the message list near the middle of the screen instead of at the bottom. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/tilesdl.cc')
-rw-r--r--crawl-ref/source/tilesdl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc
index 2674d98b79..d9e3d26e4b 100644
--- a/crawl-ref/source/tilesdl.cc
+++ b/crawl-ref/source/tilesdl.cc
@@ -1052,7 +1052,7 @@ void TilesFramework::do_layout()
crawl_view.viewsz.x -= 2;
m_region_tile->mx = crawl_view.viewsz.x;
m_region_tile->place(0, 0, margin);
- m_region_msg->place(0, m_region_tile->ex, margin);
+ m_region_msg->place(0, m_region_tile->ey, margin);
}
// Shrink viewsz if too tall: