From 4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 7 Nov 2005 01:36:12 +0000 Subject: [PATCH] Enable bidirectional text support for remote lcd. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7774 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/lcd-h100-remote.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index 2d4abe5ef0..b414f9e8bb 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c @@ -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;