1
0
Fork 0
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:
Linus Nielsen Feltzing 2005-08-08 19:23:28 +00:00
parent 1874a33298
commit 41a53d2c1c
10 changed files with 246 additions and 1 deletions

View file

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