forked from len0rd/rockbox
Enable bidirectional text support for remote lcd.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7774 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5acbd3e3c3
commit
4ab919e5d8
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
#include "debug.h"
|
||||
#include "system.h"
|
||||
#include "font.h"
|
||||
#include "bidi.h"
|
||||
|
||||
/*** definitions ***/
|
||||
|
||||
|
@ -959,6 +960,9 @@ static void lcd_remote_putsxyofs(int x, int y, int ofs, const unsigned char *str
|
|||
int ch;
|
||||
struct font* pf = font_get(curfont);
|
||||
|
||||
if (bidi_support_enabled)
|
||||
str = bidi_l2v(str, 1);
|
||||
|
||||
while ((ch = *str++) != '\0' && x < LCD_REMOTE_WIDTH)
|
||||
{
|
||||
int width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue