forked from len0rd/rockbox
More M3 work: Rockbox logo, keymap, sim definitions, sim bitmap. Simulator builds and works now, but for some reason it tries to build plugins even though they're deactivated through configure... The keymap probably needs further refinement.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16658 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab974bc86e
commit
919c20669b
7 changed files with 537 additions and 1 deletions
|
@ -45,8 +45,11 @@ static unsigned long get_lcd_pixel(int x, int y)
|
|||
#elif LCD_DEPTH == 2
|
||||
#if LCD_PIXELFORMAT == HORIZONTAL_PACKING
|
||||
return ((lcd_framebuffer[y][x/4] >> (2 * (~x & 3))) & 3);
|
||||
#else
|
||||
#elif LCD_PIXELFORMAT == VERTICAL_PACKING
|
||||
return ((lcd_framebuffer[y/4][x] >> (2 * (y & 3))) & 3);
|
||||
#elif LCD_PIXELFORMAT == VERTICAL_INTERLEAVED
|
||||
unsigned bits = (lcd_framebuffer[y/8][x] >> (y & 7)) & 0x0101;
|
||||
return (bits | (bits >> 7)) & 3;
|
||||
#endif
|
||||
#elif LCD_DEPTH == 16
|
||||
#if LCD_PIXELFORMAT == RGB565SWAPPED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue