From 5cd9c3daf7bdf786736e8e6ba83c79ec52afd7ab Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Mon, 28 Sep 2009 02:01:19 -0700 Subject: 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 --- crawl-ref/source/tilesdl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index c538fa0356..a1cae698be 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -1046,7 +1046,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: -- cgit v1.2.3-54-g00ecf