diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 21:48:44 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-31 21:48:44 +0000 |
commit | ee593c95e22b0361431f97dcc8a91c0264a5485a (patch) | |
tree | 3b9ae563cc30aefe61a429bbf30079e6491fe1cc /firmware/export | |
parent | 19d1cacb1a63c306d842f81127d382512c49a062 (diff) | |
download | rockbox-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 'firmware/export')
-rw-r--r-- | firmware/export/lcd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 0aec5d0cbf..60329147da 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h | |||
@@ -338,9 +338,13 @@ void lcd_poweroff(void); | |||
338 | /* Enable/disable the main display. */ | 338 | /* Enable/disable the main display. */ |
339 | extern void lcd_enable(bool on); | 339 | extern void lcd_enable(bool on); |
340 | extern bool lcd_enabled(void); | 340 | extern bool lcd_enabled(void); |
341 | |||
342 | #ifdef HAVE_LCD_COLOR | ||
341 | /* Register a hook that is called when the lcd is powered and after the | 343 | /* Register a hook that is called when the lcd is powered and after the |
342 | * framebuffer data is synchronized */ | 344 | * framebuffer data is synchronized */ |
343 | void lcd_set_enable_hook(void (*enable_hook)(void)); | 345 | void lcd_set_enable_hook(void (*enable_hook)(void)); |
346 | #endif /* HAVE_LCD_COLOR */ | ||
347 | |||
344 | #endif /* HAVE_LCD_ENABLE */ | 348 | #endif /* HAVE_LCD_ENABLE */ |
345 | void lcd_call_enable_hook(void); | 349 | void lcd_call_enable_hook(void); |
346 | 350 | ||