gui: Fix \t indenting for RTL langs in the lists (DB folder chooser)

Change-Id: If033547ad979a2ebdd463723a31eb15e718e6f8b
This commit is contained in:
Jonathan Gordon 2013-02-06 19:57:21 +11:00
parent db251fa7b6
commit d06779d987

View file

@ -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;
}
}