mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Fix non-integer display_zoom for charcell.
Change-Id: I2d41b5cc9cbceae05ba6cde4182896df9c5fb860
This commit is contained in:
parent
21ddcbec66
commit
1a665aab1e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue