diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd-h100.c | 4 | ||||
-rw-r--r-- | firmware/drivers/lcd-recorder.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-h100.c b/firmware/drivers/lcd-h100.c index 5bdb08abd3..bfdceedc35 100644 --- a/firmware/drivers/lcd-h100.c +++ b/firmware/drivers/lcd-h100.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "debug.h" | 28 | #include "debug.h" |
29 | #include "system.h" | 29 | #include "system.h" |
30 | #include "font.h" | 30 | #include "font.h" |
31 | #include "bidi.h" | ||
31 | 32 | ||
32 | /*** definitions ***/ | 33 | /*** definitions ***/ |
33 | 34 | ||
@@ -992,6 +993,9 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) | |||
992 | int ch; | 993 | int ch; |
993 | struct font* pf = font_get(curfont); | 994 | struct font* pf = font_get(curfont); |
994 | 995 | ||
996 | if (bidi_support_enabled) | ||
997 | str = bidi_l2v(str, 1); | ||
998 | |||
995 | while ((ch = *str++) != '\0' && x < LCD_WIDTH) | 999 | while ((ch = *str++) != '\0' && x < LCD_WIDTH) |
996 | { | 1000 | { |
997 | int width; | 1001 | int width; |
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c index cdeb4f2959..53640ce649 100644 --- a/firmware/drivers/lcd-recorder.c +++ b/firmware/drivers/lcd-recorder.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "system.h" | 28 | #include "system.h" |
29 | #include "font.h" | 29 | #include "font.h" |
30 | #include "hwcompat.h" | 30 | #include "hwcompat.h" |
31 | #include "bidi.h" | ||
31 | 32 | ||
32 | /*** definitions ***/ | 33 | /*** definitions ***/ |
33 | 34 | ||
@@ -846,6 +847,9 @@ static void lcd_putsxyofs(int x, int y, int ofs, const unsigned char *str) | |||
846 | int ch; | 847 | int ch; |
847 | struct font* pf = font_get(curfont); | 848 | struct font* pf = font_get(curfont); |
848 | 849 | ||
850 | if (bidi_support_enabled) | ||
851 | str = bidi_l2v(str, 1); | ||
852 | |||
849 | while ((ch = *str++) != '\0' && x < LCD_WIDTH) | 853 | while ((ch = *str++) != '\0' && x < LCD_WIDTH) |
850 | { | 854 | { |
851 | int width; | 855 | int width; |