gui: Fix \t indenting for RTL langs in the lists (DB folder chooser)
Change-Id: If033547ad979a2ebdd463723a31eb15e718e6f8b
This commit is contained in:
parent
db251fa7b6
commit
d06779d987
1 changed files with 18 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue