diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2012-06-19 21:56:57 +0200 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2012-06-19 21:56:57 +0200 |
commit | 1a665aab1e1e32e7355bc390fe4b09ff26d59082 (patch) | |
tree | fa5a947825308af17acd9aa94c342df2be98a2d8 | |
parent | 21ddcbec669801c77e860833f520b748cfff4f22 (diff) |
Fix non-integer display_zoom for charcell.
Change-Id: I2d41b5cc9cbceae05ba6cde4182896df9c5fb860
-rw-r--r-- | firmware/target/hosted/sdl/lcd-charcells.c | 4 |
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) 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) { |