From 1a665aab1e1e32e7355bc390fe4b09ff26d59082 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Tue, 19 Jun 2012 21:56:57 +0200 Subject: Fix non-integer display_zoom for charcell. Change-Id: I2d41b5cc9cbceae05ba6cde4182896df9c5fb860 --- firmware/target/hosted/sdl/lcd-charcells.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/target/hosted/sdl/lcd-charcells.c') 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) { -- cgit v1.2.3