1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2006-11-25 00:20:53 +00:00
parent aa9ddbd8ba
commit 38d716660e

View file

@ -71,8 +71,7 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y,
/* avoid overflows */ /* avoid overflows */
while (items > (INT_MAX / inner_len)) { while (items > (INT_MAX / inner_len)) {
items >>= 1; items >>= 1;
min >>= 1; range >>= 1;
max >>= 1;
} }
/* calc start and end of the knob */ /* calc start and end of the knob */