From d06779d9879e04964e533dd02e62e5c7007cb0b3 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 6 Feb 2013 19:57:21 +1100 Subject: [PATCH] gui: Fix \t indenting for RTL langs in the lists (DB folder chooser) Change-Id: If033547ad979a2ebdd463723a31eb15e718e6f8b --- apps/gui/bitmap/list.c | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index a2a603ab9c..191446e186 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; } } -- 2.11.4.GIT