diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-09-28 02:01:19 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-09-28 02:08:20 -0700 |
commit | 5cd9c3daf7bdf786736e8e6ba83c79ec52afd7ab (patch) | |
tree | f906e6ebd74bf6f7bb8f9252a94dbf547df3db30 /crawl-ref/source | |
parent | 7093773d17afd0ae65d6e064e5bf06de2f4687d9 (diff) | |
download | crawl-ref-5cd9c3daf7bdf786736e8e6ba83c79ec52afd7ab.tar.gz crawl-ref-5cd9c3daf7bdf786736e8e6ba83c79ec52afd7ab.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')
-rw-r--r-- | crawl-ref/source/tilesdl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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: |