From a5750f85f37e4b637009e804de88326ad2fe854d Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 9 Jan 2006 12:46:08 +0000 Subject: More distinct grayscales in the H1x0 SDl simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8315 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/lcd-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uisimulator/sdl/lcd-x11.c') diff --git a/uisimulator/sdl/lcd-x11.c b/uisimulator/sdl/lcd-x11.c index 4dcd325545..c30d857d8c 100644 --- a/uisimulator/sdl/lcd-x11.c +++ b/uisimulator/sdl/lcd-x11.c @@ -94,7 +94,7 @@ void lcd_update_rect(int x_start, int y_start, points[p].y = y + MARGIN_Y; colors[p] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1) ? sdl_black : sdl_white; #elif LCD_DEPTH == 2 - unsigned gray = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3) << 6; + unsigned gray = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3) * 85; points[p].x = x + MARGIN_X; points[p].y = y + MARGIN_Y; colors[p] = SDL_MapRGB(surface->format, 255-gray, 255-gray, 255-gray); -- cgit v1.2.3