forked from len0rd/rockbox
One little thing needed changing in gui_bitmap_scrollbar_draw.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11211 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
661c3406a9
commit
6e46bc2c19
1 changed files with 3 additions and 3 deletions
|
|
@ -190,10 +190,10 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
|
||||||
if(max > items)
|
if(max > items)
|
||||||
max = items;
|
max = items;
|
||||||
|
|
||||||
if (flags & VERTICAL)
|
if (flags & HORIZONTAL)
|
||||||
inner_len = height;
|
|
||||||
else
|
|
||||||
inner_len = width;
|
inner_len = width;
|
||||||
|
else
|
||||||
|
inner_len = height;
|
||||||
|
|
||||||
/* avoid overflows */
|
/* avoid overflows */
|
||||||
while (items > (INT_MAX / inner_len)) {
|
while (items > (INT_MAX / inner_len)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue