forked from len0rd/rockbox
Patch #783877 by Gadi Cohen updated by Naftali Goldstein - Bidirectional text support for Hebrew and Arabic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7292 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1874a33298
commit
41a53d2c1c
10 changed files with 246 additions and 1 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include "debug.h"
|
||||
#include "system.h"
|
||||
#include "font.h"
|
||||
#include "bidi.h"
|
||||
|
||||
/*** definitions ***/
|
||||
|
||||
|
|
@ -992,6 +993,9 @@ static void lcd_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_WIDTH)
|
||||
{
|
||||
int width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue