diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-10-03 14:19:30 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-10-03 14:19:30 +0000 |
commit | 0f8fe94f46b5c14b5f67b747131a5a66ed883e4c (patch) | |
tree | 858f0544f1fad5db8b7425d15c52e357c1842de3 /apps/gui/scrollbar.c | |
parent | c80dd635abb959646ed8c3262df591dfb189cd57 (diff) |
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
Diffstat (limited to 'apps/gui/scrollbar.c')
-rw-r--r-- | apps/gui/scrollbar.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/gui/scrollbar.c b/apps/gui/scrollbar.c index 8f431a4ff8..17d280b1ca 100644 --- a/apps/gui/scrollbar.c +++ b/apps/gui/scrollbar.c @@ -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; |