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/lcd.h | |
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 'firmware/export/lcd.h')
-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 c81d2de2b3..733efdded3 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -111,14 +111,14 @@ void lcd_remove_cursor(void); | |||
111 | #define LCD_HEIGHT 64 /* Display height in pixels */ | 111 | #define LCD_HEIGHT 64 /* Display height in pixels */ |
112 | #endif | 112 | #endif |
113 | 113 | ||
114 | #define DRAW_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] |= (1<<((y)&7)) | 114 | #define DRAW_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] |= (1<<((y)&7)) |
115 | #define CLEAR_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] &= ~(1<<((y)&7)) | 115 | #define CLEAR_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7)) |
116 | #define INVERT_PIXEL(x,y) lcd_framebuffer[(x)][(y)/8] ^= (1<<((y)&7)) | 116 | #define INVERT_PIXEL(x,y) lcd_framebuffer[(y)/8][(x)] ^= (1<<((y)&7)) |
117 | 117 | ||
118 | /* | 118 | /* |
119 | * Memory copy of display bitmap | 119 | * Memory copy of display bitmap |
120 | */ | 120 | */ |
121 | extern unsigned char lcd_framebuffer[LCD_WIDTH][LCD_HEIGHT/8]; | 121 | extern unsigned char lcd_framebuffer[LCD_HEIGHT/8][LCD_WIDTH]; |
122 | 122 | ||
123 | extern void lcd_setmargins(int xmargin, int ymargin); | 123 | extern void lcd_setmargins(int xmargin, int ymargin); |
124 | extern int lcd_getxmargin(void); | 124 | extern int lcd_getxmargin(void); |