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 /firmware/export | |
| parent | 2d720b2a7968666bfc315026c8a69b8a762aa058 (diff) | |
| download | rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.zip rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.tar.gz rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.tar.bz2 rockbox-5040cc53ec0e0281b2824b3a82d360adc60eff4c.tar.xz | |
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 'firmware/export')
| -rw-r--r-- | firmware/export/lcd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index c81d2de..733efdd 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -111,14 +111,14 @@ void lcd_remove_cursor(void); #define LCD_HEIGHT 64 /* Display height in pixels */ #endif -#define DRAW_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] |= (1<<((y)&7)) -#define CLEAR_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] &= ~(1<<((y)&7)) -#define INVERT_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] ^= (1<<((y)&7)) +#define DRAW_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] |= (1<<((y)&7)) +#define CLEAR_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7)) +#define INVERT_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] ^= (1<<((y)&7)) /* * Memory copy of display bitmap */ -extern unsigned char lcd_framebuffer[LCD_WIDTH][LCD_HEIGHT/8]; +extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; extern void lcd_setmargins(int xmargin, int ymargin); extern int lcd_getxmargin(void); |