summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-07 01:36:12 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-07 01:36:12 +0000
commit4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b (patch)
tree5760db8ad4d7eb8a1c8daf541647d80bb803d2a6 /firmware/drivers
parent5acbd3e3c34b2953999de69553b84ddcf44b2055 (diff)
downloadrockbox-4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b.zip
rockbox-4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b.tar.gz
rockbox-4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b.tar.bz2
rockbox-4ab919e5d8b816cfd6847e4e6828bedf0ecdb21b.tar.xz
Enable bidirectional text support for remote lcd.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7774 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/lcd-h100-remote.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c
index 2d4abe5..b414f9e 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;