From 285d35491ebd6a01e30787f459611a15c13ab234 Mon Sep 17 00:00:00 2001 From: amiconn Date: Sat, 25 Nov 2006 00:20:53 +0000 Subject: [PATCH] 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 --- apps/gui/scrollbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index 6f7928f49..b9038d902 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, /* avoid overflows */ while (items > (INT_MAX / inner_len)) { items >>= 1; - min >>= 1; - max >>= 1; + range >>= 1; } /* calc start and end of the knob */ -- 2.11.4.GIT