summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ae614bf0b6..a2a603ab9c 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)
145 const int list_start_item = list->start_item[screen]; 145 const int list_start_item = list->start_item[screen];
146 const int icon_width = list_icon_width(screen); 146 const int icon_width = list_icon_width(screen);
147 const bool scrollbar_in_left = (global_settings.scrollbar == SCROLLBAR_LEFT); 147 const bool scrollbar_in_left = (global_settings.scrollbar == SCROLLBAR_LEFT);
148 const bool scrollbar_in_right = (global_settings.scrollbar == SCROLLBAR_RIGHT);
148 const bool show_cursor = !global_settings.cursor_style && 149 const bool show_cursor = !global_settings.cursor_style &&
149 list->show_selection_marker; 150 list->show_selection_marker;
150 struct viewport *parent = (list->parent[screen]); 151 struct viewport *parent = (list->parent[screen]);
@@ -220,7 +221,7 @@ void list_draw(struct screen *display, struct gui_synclist *list)
220 list_text_vp->width -= SCROLLBAR_WIDTH; 221 list_text_vp->width -= SCROLLBAR_WIDTH;
221 list_text_vp->x += SCROLLBAR_WIDTH; 222 list_text_vp->x += SCROLLBAR_WIDTH;
222 } 223 }
223 else if (VP_IS_RTL(list_text_vp) && !scrollbar_in_left) 224 else if (VP_IS_RTL(list_text_vp) && scrollbar_in_right)
224 { 225 {
225 list_text_vp->width -= SCROLLBAR_WIDTH; 226 list_text_vp->width -= SCROLLBAR_WIDTH;
226 } 227 }