diff options
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index 1e2765f34f..0dafe092fc 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c | |||
@@ -27,15 +27,6 @@ | |||
27 | * KIND, either express or implied. | 27 | * KIND, either express or implied. |
28 | * | 28 | * |
29 | ****************************************************************************/ | 29 | ****************************************************************************/ |
30 | #ifdef BOOTLOADER | ||
31 | static int lang_is_rtl(void) | ||
32 | { | ||
33 | return 0; | ||
34 | } | ||
35 | #else | ||
36 | #include "language.h" | ||
37 | #endif | ||
38 | |||
39 | #ifndef LCDFN /* Not compiling for remote - define macros for main LCD. */ | 30 | #ifndef LCDFN /* Not compiling for remote - define macros for main LCD. */ |
40 | #define LCDFN(fn) lcd_ ## fn | 31 | #define LCDFN(fn) lcd_ ## fn |
41 | #define FBFN(fn) fb_ ## fn | 32 | #define FBFN(fn) fb_ ## fn |
@@ -186,7 +177,7 @@ void LCDFN(puts_style_offset)(int x, int y, const unsigned char *str, | |||
186 | chars_in_str = utf8length((char *)str); | 177 | chars_in_str = utf8length((char *)str); |
187 | LCDFN(getstringsize)(str, &w, &h); | 178 | LCDFN(getstringsize)(str, &w, &h); |
188 | xpos = x * w / chars_in_str; | 179 | xpos = x * w / chars_in_str; |
189 | if (lang_is_rtl()) | 180 | if (current_vp->flags & VP_IS_RTL) |
190 | xpos = current_vp->width - w - xpos; | 181 | xpos = current_vp->width - w - xpos; |
191 | ypos = y * h; | 182 | ypos = y * h; |
192 | LCDFN(putsxyofs_style)(xpos, ypos, str, style, w, h, offset); | 183 | LCDFN(putsxyofs_style)(xpos, ypos, str, style, w, h, offset); |