summaryrefslogtreecommitdiff
path: root/apps/gui/bitmap
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-18 22:42:37 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-08-18 22:42:37 +0000
commitae901c2e5040e70fefc053a9a4c2379f917173ce (patch)
tree7019804aeb18fdaa2634ad51e443c948d443aeec /apps/gui/bitmap
parentbbae89c12e738cd5014385a6331610e7dbf292e9 (diff)
Scrollbar position: only update it when exiting the menu + FS#10539 by Alexander Levin (change the order of Left/Right)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22414 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/bitmap')
-rw-r--r--apps/gui/bitmap/list.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index 578c9ced72..bc7bb876c9 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -130,12 +130,12 @@ void list_draw(struct screen *display, struct gui_synclist *list)
vp = list_text[screen];
vp.width = SCROLLBAR_WIDTH;
list_text[screen].width -= SCROLLBAR_WIDTH;
- if(global_settings.scrollbar_position) /* left */
+ if(!global_settings.scrollbar_position) /* left */
list_text[screen].x += SCROLLBAR_WIDTH;
vp.height = line_height *
viewport_get_nb_lines(&list_text[screen]);
vp.x = parent->x;
- if(!global_settings.scrollbar_position) /* right */
+ if(global_settings.scrollbar_position) /* right */
vp.x += list_text[screen].width;
display->set_viewport(&vp);
gui_scrollbar_draw(display, 0, 0, SCROLLBAR_WIDTH-1,
@@ -147,7 +147,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
else if (show_title)
{
/* shift everything right a bit... */
- if(global_settings.scrollbar_position) /* left */
+ if(!global_settings.scrollbar_position) /* left */
{
list_text[screen].width -= SCROLLBAR_WIDTH;
list_text[screen].x += SCROLLBAR_WIDTH;
@@ -341,13 +341,13 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list)
return ACTION_NONE;
}
/* Scroll bar */
- else if(global_settings.scrollbar_position) /* left */
+ else if(!global_settings.scrollbar_position) /* left */
return gui_synclist_touchscreen_scrollbar(gui_list, y);
}
else
{
if(x>list_text[screen].x+list_text[screen].width &&
- !global_settings.scrollbar_position) /* right*/
+ global_settings.scrollbar_position) /* right*/
return gui_synclist_touchscreen_scrollbar(gui_list, y);
/* |--------------------------------------------------------|