Fix non-integer display_zoom for charcell.

Change-Id: I2d41b5cc9cbceae05ba6cde4182896df9c5fb860
This commit is contained in:
Frank Gevaerts 2012-06-19 21:56:57 +02:00
parent 21ddcbec66
commit 1a665aab1e

View file

@ -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)
{