diff options
author | Chris West <therealchriswest@hotmail.com> | 2013-01-01 16:56:29 +0000 |
---|---|---|
committer | Chris West <therealchriswest@hotmail.com> | 2013-01-05 16:25:23 +0000 |
commit | 9a5990e3935167d6d34e41c9135c5d77d5c95e1b (patch) | |
tree | 654ec11d4e05f77599cb215274d7aeffa001007a /crawl-ref/source/tilereg-grid.cc | |
parent | a305a9c32b419a4916fdfd47bb7b0f9567574694 (diff) | |
download | crawl-ref-9a5990e3935167d6d34e41c9135c5d77d5c95e1b.tar.gz crawl-ref-9a5990e3935167d6d34e41c9135c5d77d5c95e1b.zip |
improved inventory paging on non-touch ui
Diffstat (limited to 'crawl-ref/source/tilereg-grid.cc')
-rw-r--r-- | crawl-ref/source/tilereg-grid.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg-grid.cc b/crawl-ref/source/tilereg-grid.cc index a4ebe7eee8..0d149364bd 100644 --- a/crawl-ref/source/tilereg-grid.cc +++ b/crawl-ref/source/tilereg-grid.cc @@ -65,7 +65,7 @@ void GridRegion::on_resize() unsigned int GridRegion::cursor_index() const { ASSERT(m_cursor != NO_CURSOR); - return m_cursor.x + m_cursor.y * mx + m_grid_page*mx*my -2*m_grid_page; + return m_cursor.x + m_cursor.y * mx + m_grid_page*mx*my -1*m_grid_page; } void GridRegion::place_cursor(const coord_def &cursor) |