1
0
Fork 0
forked from len0rd/rockbox

correct drawing of the bar type tags when nofill is set.

draw the slider bitmap before drawing A-B repeat markers so that they are visible.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28204 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-10-03 14:19:30 +00:00
parent c80dd635ab
commit 0f8fe94f46
3 changed files with 39 additions and 44 deletions

View file

@ -151,6 +151,9 @@ void gui_scrollbar_draw(struct screen * screen, int x, int y,
screen->set_drawmode(DRMODE_SOLID);
if (flags & INNER_NOFILL)
return;
#ifdef HAVE_LCD_COLOR
if (infill == INNER_BGFILL)
{
@ -190,7 +193,12 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x,
/* clear pixels in progress bar */
screen->fillrect(x, y, width, height);
screen->set_drawmode(DRMODE_SOLID);
if (flags & INNER_NOFILL)
return;
if (flags & INVERTFILL)
{
min_shown = items - max_shown;
@ -204,8 +212,6 @@ void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap *bm, int x,
scrollbar_helper(min_shown, max_shown, items, inner_len, &size, &start);
screen->set_drawmode(DRMODE_SOLID);
if (flags & HORIZONTAL) {
x += start;
width = size;