summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/lcd-bitmap.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-04-04 01:40:11 +0000
committerJens Arnold <amiconn@rockbox.org>2006-04-04 01:40:11 +0000
commit4c544b4e074d00c31ea79f5808ae465971ecd4b0 (patch)
treebbcb3d7a1853a98bf521b002920602894495d7cf /uisimulator/sdl/lcd-bitmap.c
parent295ec69717a758c527a58ca154dba25c7c22fae5 (diff)
downloadrockbox-4c544b4e074d00c31ea79f5808ae465971ecd4b0.tar.gz
rockbox-4c544b4e074d00c31ea79f5808ae465971ecd4b0.zip
Fix greyscale iPod sims for new LCD format.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9480 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/lcd-bitmap.c')
-rw-r--r--uisimulator/sdl/lcd-bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/lcd-bitmap.c b/uisimulator/sdl/lcd-bitmap.c
index 788a5f662d..da4050461c 100644
--- a/uisimulator/sdl/lcd-bitmap.c
+++ b/uisimulator/sdl/lcd-bitmap.c
@@ -41,7 +41,7 @@ static unsigned long get_lcd_pixel(int x, int y)
41 return ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1); 41 return ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
42#elif LCD_DEPTH == 2 42#elif LCD_DEPTH == 2
43#if LCD_PIXELFORMAT == HORIZONTAL_PACKING 43#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
44 return ((lcd_framebuffer[y][x/4] >> (2 * (x & 3))) & 3); 44 return ((lcd_framebuffer[y][x/4] >> (2 * (~x & 3))) & 3);
45#else 45#else
46 return ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3); 46 return ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
47#endif 47#endif