summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-11-25 00:20:53 +0000
committerJens Arnold <amiconn@rockbox.org>2006-11-25 00:20:53 +0000
commit38d716660e026873dfd0dfcc1f4ce287141f296b (patch)
tree71aa0a2d5948968bf2734d9538b0c4bdc249109b
parentaa9ddbd8ba2259b27382d7e763c717cbbc32f884 (diff)
downloadrockbox-38d716660e026873dfd0dfcc1f4ce287141f296b.tar.gz
rockbox-38d716660e026873dfd0dfcc1f4ce287141f296b.zip
Fix bug in large-value handling of gui_scrollbar_draw() that went unnoticed for ages...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11587 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/scrollbar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c
index 6f7928f49b..b9038d902b 100644
--- a/apps/gui/scrollbar.c
+++ b/apps/gui/scrollbar.c
@@ -71,8 +71,7 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y,
71 /* avoid overflows */ 71 /* avoid overflows */
72 while (items > (INT_MAX / inner_len)) { 72 while (items > (INT_MAX / inner_len)) {
73 items >>= 1; 73 items >>= 1;
74 min >>= 1; 74 range >>= 1;
75 max >>= 1;
76 } 75 }
77 76
78 /* calc start and end of the knob */ 77 /* calc start and end of the knob */