summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-08 13:03:23 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-08 13:03:23 +0000
commitb772a436fa1a14accf19395e1e68c92bd16e4521 (patch)
tree20bdef9f3fa5efaf6a59a9946615f556707caedc
parent3903807e62c1d810210d5ccc5972b7608dabed3b (diff)
The SDL simulator didn't draw the pixels correctly on targets with gray/mono LCD, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8625 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/sdl/lcd-sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/sdl/lcd-sdl.c b/uisimulator/sdl/lcd-sdl.c
index ad3463c390..c66b8115aa 100644
--- a/uisimulator/sdl/lcd-sdl.c
+++ b/uisimulator/sdl/lcd-sdl.c
@@ -129,7 +129,7 @@ void lcd_remote_update_rect(int x_start, int y_start,
{
Uint8 *p = (Uint8 *)remote_surface->pixels + y * remote_surface->pitch + x * bpp;
- *(Uint32 *)p = ((lcd_remote_framebuffer[y/8][x] >> (y & 7)) & 1);
+ *(Uint8 *)p = ((lcd_remote_framebuffer[y/8][x] >> (y & 7)) & 1);
}
SDL_UnlockSurface(remote_surface);