diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-01-09 12:46:08 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-01-09 12:46:08 +0000 |
commit | a5750f85f37e4b637009e804de88326ad2fe854d (patch) | |
tree | 833e9c682d1567f2a28a23b406ad22f7f2c59356 | |
parent | bea15897ed1720ea6178d06972997d71d28eeb7d (diff) | |
download | rockbox-a5750f85f37e4b637009e804de88326ad2fe854d.tar.gz rockbox-a5750f85f37e4b637009e804de88326ad2fe854d.zip |
More distinct grayscales in the H1x0 SDl simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8315 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | uisimulator/sdl/lcd-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
94 | points[p].y = y + MARGIN_Y; | 94 | points[p].y = y + MARGIN_Y; |
95 | colors[p] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1) ? sdl_black : sdl_white; | 95 | colors[p] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1) ? sdl_black : sdl_white; |
96 | #elif LCD_DEPTH == 2 | 96 | #elif LCD_DEPTH == 2 |
97 | unsigned gray = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3) << 6; | 97 | unsigned gray = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3) * 85; |
98 | points[p].x = x + MARGIN_X; | 98 | points[p].x = x + MARGIN_X; |
99 | points[p].y = y + MARGIN_Y; | 99 | points[p].y = y + MARGIN_Y; |
100 | colors[p] = SDL_MapRGB(surface->format, 255-gray, 255-gray, 255-gray); | 100 | colors[p] = SDL_MapRGB(surface->format, 255-gray, 255-gray, 255-gray); |