summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/bitmap/list.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c
index a2a603a..191446e 100644
--- a/apps/gui/bitmap/list.c
+++ b/apps/gui/bitmap/list.c
@@ -268,8 +268,15 @@ void list_draw(struct screen *display, struct gui_synclist *list)
else
indent *= display->getcharwidth();
- list_icons.x += indent;
- list_text_vp->x += indent;
+ if (VP_IS_RTL(&list_icons))
+ {
+ list_icons.x -= indent;
+ }
+ else
+ {
+ list_icons.x += indent;
+ list_text_vp->x += indent;
+ }
list_text_vp->width -= indent;
}
@@ -376,8 +383,15 @@ void list_draw(struct screen *display, struct gui_synclist *list)
}
if (indent)
{
- list_icons.x -= indent;
- list_text_vp->x -= indent;
+ if (VP_IS_RTL(&list_icons))
+ {
+ list_icons.x += indent;
+ }
+ else
+ {
+ list_icons.x -= indent;
+ list_text_vp->x -= indent;
+ }
list_text_vp->width += indent;
}
}