summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libgui.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-15 11:32:54 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-15 11:32:54 +0000
commit7fce9b7324c77c16c310e76a6d697e6f84fc9398 (patch)
tree061bcb63c57c1281473a289e22041cb93259feca /crawl-ref/source/libgui.cc
parentead36b3ba490fb199815ccc048ba204e5bbee30e (diff)
downloadcrawl-ref-7fce9b7324c77c16c310e76a6d697e6f84fc9398.tar.gz
crawl-ref-7fce9b7324c77c16c310e76a6d697e6f84fc9398.zip
Fix 1948131: Quiver slot name wraps around the screen.
Also fixes tile issues where the inventory was partly covered or not shown at all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5844 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libgui.cc')
-rw-r--r--crawl-ref/source/libgui.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/libgui.cc b/crawl-ref/source/libgui.cc
index 13c0b7e3f2..b39b8ca26b 100644
--- a/crawl-ref/source/libgui.cc
+++ b/crawl-ref/source/libgui.cc
@@ -1278,10 +1278,11 @@ static int _handle_mouse_motion(int mouse_x, int mouse_y, bool init)
else
mode = convert_cursor_pos(mouse_x, mouse_y, &cx, &cy);
- if (oldcx == cx && oldcy == cy && oldmode == mode) return 0;
+ if (oldcx == cx && oldcy == cy && oldmode == mode)
+ return 0;
// erase old cursor
- if ( oldmode == REGION_DNGN && mode != oldmode)
+ if (oldmode == REGION_DNGN && mode != oldmode)
{
oldcx = -10;
//_setcursortype(0);