summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2013-01-18 18:02:47 +0100
committerThomas Martitz <kugel@rockbox.org>2013-01-18 18:02:47 +0100
commit48bc762db1de6c2b217bcb01b4a1e8a7a2765650 (patch)
tree173c8389c94ae0f1d3df4f1cea115590287c6e9b
parentef382216026d9f7e6e08da511c1bc43adbdd2311 (diff)
downloadrockbox-48bc762db1de6c2b217bcb01b4a1e8a7a2765650.zip
rockbox-48bc762db1de6c2b217bcb01b4a1e8a7a2765650.tar.gz
rockbox-48bc762db1de6c2b217bcb01b4a1e8a7a2765650.tar.bz2
rockbox-48bc762db1de6c2b217bcb01b4a1e8a7a2765650.tar.xz
lists: Fix item indentation in RTL to match LTR behavior (which is no indentation when the scrollbar isn't shown, apparently).
Change-Id: I5c36d34638fa7a9cba9468b7ee07a07a836fadec
-rw-r--r--apps/gui/bitmap/list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index ae614bf..a2a603a 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -145,6 +145,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
const int list_start_item = list->start_item[screen];
const int icon_width = list_icon_width(screen);
const bool scrollbar_in_left = (global_settings.scrollbar == SCROLLBAR_LEFT);
+ const bool scrollbar_in_right = (global_settings.scrollbar == SCROLLBAR_RIGHT);
const bool show_cursor = !global_settings.cursor_style &&
list->show_selection_marker;
struct viewport *parent = (list->parent[screen]);
@@ -220,7 +221,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
list_text_vp->width -= SCROLLBAR_WIDTH;
list_text_vp->x += SCROLLBAR_WIDTH;
}
- else if (VP_IS_RTL(list_text_vp) && !scrollbar_in_left)
+ else if (VP_IS_RTL(list_text_vp) && scrollbar_in_right)
{
list_text_vp->width -= SCROLLBAR_WIDTH;
}