diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-01-19 17:23:52 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-01-20 15:50:59 +0100 |
commit | 04dd302ff264ff92e7df03f1f46c6c14755eab63 (patch) | |
tree | ddb41184bbb0759c1b9901fad9fa2d310c4e3535 /crawl-ref/source/menu.cc | |
parent | 7be5cb3070d0fd20fba412742e6354a8c96be838 (diff) | |
download | crawl-ref-04dd302ff264ff92e7df03f1f46c6c14755eab63.tar.gz crawl-ref-04dd302ff264ff92e7df03f1f46c6c14755eab63.zip |
Fix a bunch of compiler warnings in tiles.
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r-- | crawl-ref/source/menu.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc index 617bb718c1..e99134d4d9 100644 --- a/crawl-ref/source/menu.cc +++ b/crawl-ref/source/menu.cc @@ -3914,7 +3914,7 @@ MenuObject::InputReturnValue MenuScroller::handle_mouse(const MouseEvent &me) else { // handle clicking on the scrollbar (top half of region => scroll up) - if (me.py-m_min_coord.y > (m_max_coord.y-m_min_coord.y)/2) + if (static_cast<int>(me.py)-m_min_coord.y > (m_max_coord.y-m_min_coord.y)/2) return process_input(CK_DOWN); else return process_input(CK_UP); @@ -4163,7 +4163,7 @@ void MenuScroller::_place_items() #ifdef USE_TILE_LOCAL // arrows m_arrow_down->set_bounds_no_multiply(coord_def(m_max_coord.x-32,m_max_coord.y-32),coord_def(m_max_coord.x,m_max_coord.y)); - m_arrow_down->set_visible(m_topmost_visible+m_items_shown<m_entries.size()); + m_arrow_down->set_visible(m_topmost_visible + m_items_shown < (int)m_entries.size()); m_arrow_up->set_bounds_no_multiply(coord_def(m_max_coord.x-32,m_min_coord.y),coord_def(m_max_coord.x,m_min_coord.y+32)); m_arrow_up->set_visible(m_topmost_visible>0); |