From 5040cc53ec0e0281b2824b3a82d360adc60eff4c Mon Sep 17 00:00:00 2001 From: Jörg Hohensohn Date: Tue, 23 Dec 2003 23:41:45 +0000 Subject: 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 --- apps/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/misc.c b/apps/misc.c index 69cb7d3174..be1c3202fb 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -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]; } } -- cgit v1.2.3