summaryrefslogtreecommitdiff
path: root/firmware/target/hosted
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-06-19 21:56:57 +0200
committerFrank Gevaerts <frank@gevaerts.be>2012-06-19 21:56:57 +0200
commit1a665aab1e1e32e7355bc390fe4b09ff26d59082 (patch)
treefa5a947825308af17acd9aa94c342df2be98a2d8 /firmware/target/hosted
parent21ddcbec669801c77e860833f520b748cfff4f22 (diff)
downloadrockbox-1a665aab1e1e32e7355bc390fe4b09ff26d59082.tar.gz
rockbox-1a665aab1e1e32e7355bc390fe4b09ff26d59082.zip
Fix non-integer display_zoom for charcell.
Change-Id: I2d41b5cc9cbceae05ba6cde4182896df9c5fb860
Diffstat (limited to 'firmware/target/hosted')
-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 {