diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-06 19:57:21 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-06 19:57:21 +1100 |
commit | d06779d9879e04964e533dd02e62e5c7007cb0b3 (patch) | |
tree | 902a6857f4d06333b3234fb2826f105560caf45b | |
parent | db251fa7b6d612ce7d4b178afa6fae485b671d01 (diff) | |
download | rockbox-d06779d9879e04964e533dd02e62e5c7007cb0b3.tar.gz rockbox-d06779d9879e04964e533dd02e62e5c7007cb0b3.zip |
gui: Fix \t indenting for RTL langs in the lists (DB folder chooser)
Change-Id: If033547ad979a2ebdd463723a31eb15e718e6f8b
-rw-r--r-- | apps/gui/bitmap/list.c | 22 |
1 files 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) | |||
268 | else | 268 | else |
269 | indent *= display->getcharwidth(); | 269 | indent *= display->getcharwidth(); |
270 | 270 | ||
271 | list_icons.x += indent; | 271 | if (VP_IS_RTL(&list_icons)) |
272 | list_text_vp->x += indent; | 272 | { |
273 | list_icons.x -= indent; | ||
274 | } | ||
275 | else | ||
276 | { | ||
277 | list_icons.x += indent; | ||
278 | list_text_vp->x += indent; | ||
279 | } | ||
273 | list_text_vp->width -= indent; | 280 | list_text_vp->width -= indent; |
274 | } | 281 | } |
275 | 282 | ||
@@ -376,8 +383,15 @@ void list_draw(struct screen *display, struct gui_synclist *list) | |||
376 | } | 383 | } |
377 | if (indent) | 384 | if (indent) |
378 | { | 385 | { |
379 | list_icons.x -= indent; | 386 | if (VP_IS_RTL(&list_icons)) |
380 | list_text_vp->x -= indent; | 387 | { |
388 | list_icons.x += indent; | ||
389 | } | ||
390 | else | ||
391 | { | ||
392 | list_icons.x -= indent; | ||
393 | list_text_vp->x -= indent; | ||
394 | } | ||
381 | list_text_vp->width += indent; | 395 | list_text_vp->width += indent; |
382 | } | 396 | } |
383 | } | 397 | } |