summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3a62382..1020e72 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)
for (y = SIM_LCD_HEIGHT - 1; y >= 0; y--)
{
Uint8 *src = (Uint8 *)lcd_surface->pixels
- + y * SIM_LCD_WIDTH * display_zoom * display_zoom;
+ + y * SIM_LCD_WIDTH * (int)display_zoom * (int)display_zoom;
unsigned char *dst = line;
unsigned dst_mask = 0x80;
@@ -187,7 +187,7 @@ void screen_dump(void)
{
if (*src)
*dst |= dst_mask;
- src += display_zoom;
+ src += (int)display_zoom;
dst_mask >>= 1;
if (dst_mask == 0)
{