summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-10-31 21:48:44 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-10-31 21:48:44 +0000
commitee593c95e22b0361431f97dcc8a91c0264a5485a (patch)
tree3b9ae563cc30aefe61a429bbf30079e6491fe1cc /apps/plugin.h
parent19d1cacb1a63c306d842f81127d382512c49a062 (diff)
downloadrockbox-ee593c95e22b0361431f97dcc8a91c0264a5485a.tar.gz
rockbox-ee593c95e22b0361431f97dcc8a91c0264a5485a.zip
Make lcd_set_enable_hook() conditional on HAVE_LCD_ENABLE and HAVE_LCD_COLOR
This prepares for the Clip which will define HAVE_LCD_ENABLE but won't need the hook since the internal LCD framebuffer is updated regardless if the display is on or off. firmware/drivers/lcd-16bit.c has not been modified since HAVE_LCD_COLOR is obviously defined here git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18951 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 4f747ea2b1..08d0b603ac 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -226,7 +226,7 @@ struct plugin_api {
226 void (*lcd_set_invert_display)(bool yesno); 226 void (*lcd_set_invert_display)(bool yesno);
227#endif /* HAVE_LCD_INVERT */ 227#endif /* HAVE_LCD_INVERT */
228 228
229#ifdef HAVE_LCD_ENABLE 229#if defined(HAVE_LCD_ENABLE) && defined(HAVE_LCD_COLOR)
230 void (*lcd_set_enable_hook)(void (*enable_hook)(void)); 230 void (*lcd_set_enable_hook)(void (*enable_hook)(void));
231 struct event_queue *button_queue; 231 struct event_queue *button_queue;
232#endif 232#endif