diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-03-17 03:36:36 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-03-17 03:36:36 +0000 |
commit | 4ed387d60313ac79fa7ac8b403bf3195f7c0c549 (patch) | |
tree | d5bc4861cbdde61b054d12deed4ffea92af03bd3 /firmware/drivers/lcd-1bit-vert.c | |
parent | 68f9ef2d575c4d6801730a0a8242227383d682f7 (diff) | |
download | rockbox-4ed387d60313ac79fa7ac8b403bf3195f7c0c549.tar.gz rockbox-4ed387d60313ac79fa7ac8b403bf3195f7c0c549.zip |
Fix reds and yellows (hopefully). Some targets apparently didn't properly #ifdef lcd_enable and lcd_sleep code out, so that it got partly active in the bootloader; rename the ui simulator stub fixes most reds; for the clip: move the hook code into lcd-1bit-vert.c which should fix the bootloader red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20333 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-1bit-vert.c')
-rw-r--r-- | firmware/drivers/lcd-1bit-vert.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-1bit-vert.c b/firmware/drivers/lcd-1bit-vert.c index f8461e3cbd..b09ce0e76d 100644 --- a/firmware/drivers/lcd-1bit-vert.c +++ b/firmware/drivers/lcd-1bit-vert.c | |||
@@ -95,6 +95,25 @@ void LCDFN(init)(void) | |||
95 | #endif | 95 | #endif |
96 | } | 96 | } |
97 | 97 | ||
98 | #ifdef MAIN_LCD | ||
99 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | ||
100 | static void (*lcd_activation_hook)(void) = NULL; | ||
101 | |||
102 | void lcd_activation_set_hook(void (*func)(void)) | ||
103 | { | ||
104 | lcd_activation_hook = func; | ||
105 | } | ||
106 | |||
107 | void lcd_activation_call_hook(void) | ||
108 | { | ||
109 | void (*func)(void) = lcd_activation_hook; | ||
110 | |||
111 | if (func != NULL) | ||
112 | func(); | ||
113 | } | ||
114 | #endif | ||
115 | #endif | ||
116 | |||
98 | /*** parameter handling ***/ | 117 | /*** parameter handling ***/ |
99 | 118 | ||
100 | void LCDFN(set_drawmode)(int mode) | 119 | void LCDFN(set_drawmode)(int mode) |