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:
parent
aa9ddbd8ba
commit
38d716660e
1 changed files with 1 additions and 2 deletions
|
|
@ -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 */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue