From b772a436fa1a14accf19395e1e68c92bd16e4521 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 8 Feb 2006 13:03:23 +0000 Subject: 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 --- uisimulator/sdl/lcd-sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uisimulator') 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); -- cgit v1.2.3