forked from len0rd/rockbox
Screen buffer transposed, such that bytes in X-direction are consecutive. This enables my turbocharged lcd_write_data() for regular screen updates. Please check the X11 sim, Win32 works.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4177 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2d720b2a79
commit
5040cc53ec
6 changed files with 40 additions and 37 deletions
|
@ -103,7 +103,7 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
|
||||
#ifdef SCREENDUMP
|
||||
extern unsigned char lcd_framebuffer[LCD_WIDTH][LCD_HEIGHT/8];
|
||||
extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH];
|
||||
static unsigned char bmpheader[] =
|
||||
{
|
||||
0x42, 0x4d, 0x3e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00,
|
||||
|
@ -131,7 +131,7 @@ void screen_dump(void)
|
|||
{
|
||||
for(x = 0;x < LCD_WIDTH;x++)
|
||||
{
|
||||
buf[i++] = lcd_framebuffer[x][y];
|
||||
buf[i++] = lcd_framebuffer[y][x];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue