diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-12-23 23:41:45 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2003-12-23 23:41:45 +0000 |
commit | 5040cc53ec0e0281b2824b3a82d360adc60eff4c (patch) | |
tree | 80abb5a51247bb69aa69b1f98b922aa20a875779 /apps/misc.c | |
parent | 2d720b2a7968666bfc315026c8a69b8a762aa058 (diff) | |
download | rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.tar.gz rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.zip |
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
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
103 | #endif | 103 | #endif |
104 | 104 | ||
105 | #ifdef SCREENDUMP | 105 | #ifdef SCREENDUMP |
106 | extern unsigned char lcd_framebuffer[LCD_WIDTH][LCD_HEIGHT/8]; | 106 | extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; |
107 | static unsigned char bmpheader[] = | 107 | static unsigned char bmpheader[] = |
108 | { | 108 | { |
109 | 0x42, 0x4d, 0x3e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, | 109 | 0x42, 0x4d, 0x3e, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x00, |
@@ -131,7 +131,7 @@ void screen_dump(void) | |||
131 | { | 131 | { |
132 | for(x = 0;x < LCD_WIDTH;x++) | 132 | for(x = 0;x < LCD_WIDTH;x++) |
133 | { | 133 | { |
134 | buf[i++] = lcd_framebuffer[x][y]; | 134 | buf[i++] = lcd_framebuffer[y][x]; |
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||