1
0
Fork 0
forked from len0rd/rockbox

fix displaying of the slider when default is used for pb->y and pb->height.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28220 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-10-08 14:26:36 +00:00
parent 09d8975084
commit cc8918e909
2 changed files with 25 additions and 22 deletions

View file

@ -224,6 +224,15 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x,
starty = start;
}
if (bm->width < startx)
width = 0;
else if (bm->width < startx + width)
width = bm->width - startx;
if (bm->height < starty)
height = 0;
else if (bm->height < starty + height)
height = bm->height - starty;
#if LCD_DEPTH > 1
if (bm->format == FORMAT_MONO)
#endif