summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-10-13 04:25:47 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-10-13 04:25:47 +0000
commit6e46bc2c1942f1f65620a8382c9f958335e539a6 (patch)
treec461382e83eedf017e10e49f1d22f666a23069d6 /apps/gui
parent661c3406a928bad14102a09219774884f9e1db91 (diff)
downloadrockbox-6e46bc2c1942f1f65620a8382c9f958335e539a6.tar.gz
rockbox-6e46bc2c1942f1f65620a8382c9f958335e539a6.zip
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
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/scrollbar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c
index f7dead566e..6f7928f49b 100644
--- a/apps/gui/scrollbar.c
+++ b/apps/gui/scrollbar.c
@@ -190,10 +190,10 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x,
190 if(max > items) 190 if(max > items)
191 max = items; 191 max = items;
192 192
193 if (flags & VERTICAL) 193 if (flags & HORIZONTAL)
194 inner_len = height;
195 else
196 inner_len = width; 194 inner_len = width;
195 else
196 inner_len = height;
197 197
198 /* avoid overflows */ 198 /* avoid overflows */
199 while (items > (INT_MAX / inner_len)) { 199 while (items > (INT_MAX / inner_len)) {