mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Fix greyscale iPod sims for new LCD format.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9480 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
295ec69717
commit
4c544b4e07
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ static unsigned long get_lcd_pixel(int x, int y)
|
|||
return ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
|
||||
#elif LCD_DEPTH == 2
|
||||
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
|
||||
return ((lcd_framebuffer[y][x/4] >> (2 * (x & 3))) & 3);
|
||||
return ((lcd_framebuffer[y][x/4] >> (2 * (~x & 3))) & 3);
|
||||
#else
|
||||
return ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue