summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/SOURCES2
-rw-r--r--firmware/drivers/lcd-bitmap-common.c10
2 files changed, 9 insertions, 3 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index 4b60562af4..434ef319d3 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -1,3 +1,5 @@
1test_disk.c
2test_gfx.c
1/* plugins common to all models */ 3/* plugins common to all models */
2chessclock.c 4chessclock.c
3credits.c 5credits.c
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 7a072894b2..3853912640 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -84,8 +84,8 @@ struct lcd_bitmap_char
84{ 84{
85 char is_rtl; 85 char is_rtl;
86 char is_diacritic; 86 char is_diacritic;
87 unsigned short int width; 87 unsigned char width;
88 unsigned short base_width; 88 unsigned char base_width;
89}; 89};
90 90
91/* put a string at a given pixel position, skipping first ofs pixel columns */ 91/* put a string at a given pixel position, skipping first ofs pixel columns */
@@ -120,7 +120,11 @@ static void LCDFN(putsxyofs)(int x, int y, int ofs, const unsigned char *str)
120 ucs = bidi_l2v(str, 1); 120 ucs = bidi_l2v(str, 1);
121 /* Mark diacritic and rtl flags for each character */ 121 /* Mark diacritic and rtl flags for each character */
122 for (i = 0; i < SCROLL_LINE_SIZE && ucs[i]; i++) 122 for (i = 0; i < SCROLL_LINE_SIZE && ucs[i]; i++)
123 chars[i].is_diacritic = is_diacritic(ucs[i], &chars[i].is_rtl); 123 {
124 bool is_rtl;
125 chars[i].is_diacritic = is_diacritic(ucs[i], &is_rtl);
126 chars[i].is_rtl=is_rtl;
127 }
124 len = i; 128 len = i;
125 129
126 /* Get proportional width and glyph bits */ 130 /* Get proportional width and glyph bits */