forked from len0rd/rockbox
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
|
else
|
||||||
indent *= display->getcharwidth();
|
indent *= display->getcharwidth();
|
||||||
|
|
||||||
|
if (VP_IS_RTL(&list_icons))
|
||||||
|
{
|
||||||
|
list_icons.x -= indent;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
list_icons.x += indent;
|
list_icons.x += indent;
|
||||||
list_text_vp->x += indent;
|
list_text_vp->x += indent;
|
||||||
|
}
|
||||||
list_text_vp->width -= indent;
|
list_text_vp->width -= indent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -375,9 +382,16 @@ void list_draw(struct screen *display, struct gui_synclist *list)
|
||||||
Icon_Cursor);
|
Icon_Cursor);
|
||||||
}
|
}
|
||||||
if (indent)
|
if (indent)
|
||||||
|
{
|
||||||
|
if (VP_IS_RTL(&list_icons))
|
||||||
|
{
|
||||||
|
list_icons.x += indent;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
list_icons.x -= indent;
|
list_icons.x -= indent;
|
||||||
list_text_vp->x -= indent;
|
list_text_vp->x -= indent;
|
||||||
|
}
|
||||||
list_text_vp->width += indent;
|
list_text_vp->width += indent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue