diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-12-16 23:40:39 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-12-16 23:40:39 +0000 |
commit | 95e6043d5e256df72c20db39c3be59a3ba977b19 (patch) | |
tree | 20a86cd626c43e92436459b6a408c4a13f4c21ef /firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h | |
parent | 13b2f5381310bc4e58d34f8dac0c8b9bdbd736d2 (diff) | |
download | rockbox-95e6043d5e256df72c20db39c3be59a3ba977b19.tar.gz rockbox-95e6043d5e256df72c20db39c3be59a3ba977b19.zip |
Convert remaining memframe LCDs that can be convert to common code.
Massage the way it interfaces a bit to make things more flexible.
The chroma_buf scheme on Sansa Connect and Creative ZVx calling the
lcd_write_yuv420_lines implementation in lcd-as-memframe.S with five params
with a chroma buffer that the function can't use wouldn't work anyway so just
have them use the stock implementation (really, how was that working?).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31335 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h')
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h b/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h index 720aa0cf19..456f0e3cfe 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h +++ b/firmware/target/arm/tms320dm320/creative-zvm/lcd-target.h | |||
@@ -19,12 +19,20 @@ | |||
19 | * | 19 | * |
20 | ****************************************************************************/ | 20 | ****************************************************************************/ |
21 | 21 | ||
22 | #ifndef _LCD_TARGET_H_ | 22 | #ifndef LCD_TARGET_H |
23 | #define _LCD_TARGET_H_ | 23 | #define LCD_TARGET_H |
24 | |||
25 | extern void lcd_enable(bool state); | ||
26 | 24 | ||
27 | void lcd_set_direct_fb(bool yes); | 25 | void lcd_set_direct_fb(bool yes); |
28 | bool lcd_get_direct_fb(void); | 26 | bool lcd_get_direct_fb(void); |
29 | 27 | ||
30 | #endif | 28 | /* Direct FB access disables regular updates */ |
29 | #define lcd_write_enabled() \ | ||
30 | ({ lcd_on && !lcd_get_direct_fb(); }) | ||
31 | |||
32 | /* Very strange functions */ | ||
33 | #define LCD_OPTIMIZED_UPDATE | ||
34 | #define LCD_OPTIMIZED_UPDATE_RECT | ||
35 | |||
36 | #define LCD_FRAMEBUF_ADDR(col, row) ((fb_data *)FRAME + (row)*LCD_WIDTH + (col)) | ||
37 | |||
38 | #endif /* LCD_TARGET_H */ | ||