summaryrefslogtreecommitdiff
path: root/apps/gui/scrollbar.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-10-03 14:19:30 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-10-03 14:19:30 +0000
commit0f8fe94f46b5c14b5f67b747131a5a66ed883e4c (patch)
tree858f0544f1fad5db8b7425d15c52e357c1842de3 /apps/gui/scrollbar.c
parentc80dd635abb959646ed8c3262df591dfb189cd57 (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.c12
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;