1
0
Fork 0
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:
Michael Sevakis 2006-10-13 04:25:47 +00:00
parent 661c3406a9
commit 6e46bc2c19

View file

@ -190,10 +190,10 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
if(max > items)
max = items;
if (flags & VERTICAL)
inner_len = height;
else
if (flags & HORIZONTAL)
inner_len = width;
else
inner_len = height;
/* avoid overflows */
while (items > (INT_MAX / inner_len)) {