summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-bitmap-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-rw-r--r--firmware/drivers/lcd-bitmap-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 0dafe092fc..9d88eba3b2 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -177,7 +177,7 @@ void LCDFN(puts_style_offset)(int x, int y, const unsigned char *str,
177 chars_in_str = utf8length((char *)str); 177 chars_in_str = utf8length((char *)str);
178 LCDFN(getstringsize)(str, &w, &h); 178 LCDFN(getstringsize)(str, &w, &h);
179 xpos = x * w / chars_in_str; 179 xpos = x * w / chars_in_str;
180 if (current_vp->flags & VP_IS_RTL) 180 if (VP_IS_RTL(current_vp))
181 xpos = current_vp->width - w - xpos; 181 xpos = current_vp->width - w - xpos;
182 ypos = y * h; 182 ypos = y * h;
183 LCDFN(putsxyofs_style)(xpos, ypos, str, style, w, h, offset); 183 LCDFN(putsxyofs_style)(xpos, ypos, str, style, w, h, offset);