Add 4g grayscale support for the win32 sim

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8672 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-02-13 01:13:04 +00:00
parent bf54647132
commit 436584f731
3 changed files with 16 additions and 0 deletions

View file

@ -95,7 +95,11 @@ void lcd_update_rect(int x_start, int y_start,
#if LCD_DEPTH == 1
bitmap[y][x] = ((lcd_framebuffer[y/8][x] >> (y & 7)) & 1);
#elif LCD_DEPTH == 2
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
bitmap[y][x] = ((lcd_framebuffer[y][x/4] >> (2 * (x & 3))) & 3);
#else
bitmap[y][x] = ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
#endif
#elif LCD_DEPTH == 16
#if LCD_PIXELFORMAT == RGB565SWAPPED
unsigned bits = lcd_framebuffer[y][x];