summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/sdl')
-rw-r--r--firmware/target/hosted/sdl/lcd-charcells.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/hosted/sdl/lcd-charcells.c b/firmware/target/hosted/sdl/lcd-charcells.c
index 3a623827db..1020e7269a 100644
--- a/firmware/target/hosted/sdl/lcd-charcells.c
+++ b/firmware/target/hosted/sdl/lcd-charcells.c
@@ -178,7 +178,7 @@ void screen_dump(void)
178 for (y = SIM_LCD_HEIGHT - 1; y >= 0; y--) 178 for (y = SIM_LCD_HEIGHT - 1; y >= 0; y--)
179 { 179 {
180 Uint8 *src = (Uint8 *)lcd_surface->pixels 180 Uint8 *src = (Uint8 *)lcd_surface->pixels
181 + y * SIM_LCD_WIDTH * display_zoom * display_zoom; 181 + y * SIM_LCD_WIDTH * (int)display_zoom * (int)display_zoom;
182 unsigned char *dst = line; 182 unsigned char *dst = line;
183 unsigned dst_mask = 0x80; 183 unsigned dst_mask = 0x80;
184 184
@@ -187,7 +187,7 @@ void screen_dump(void)
187 { 187 {
188 if (*src) 188 if (*src)
189 *dst |= dst_mask; 189 *dst |= dst_mask;
190 src += display_zoom; 190 src += (int)display_zoom;
191 dst_mask >>= 1; 191 dst_mask >>= 1;
192 if (dst_mask == 0) 192 if (dst_mask == 0)
193 { 193 {