From ee593c95e22b0361431f97dcc8a91c0264a5485a Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Fri, 31 Oct 2008 21:48:44 +0000 Subject: 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 --- firmware/export/lcd.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/export') 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); /* Enable/disable the main display. */ extern void lcd_enable(bool on); extern bool lcd_enabled(void); + +#ifdef HAVE_LCD_COLOR /* Register a hook that is called when the lcd is powered and after the * framebuffer data is synchronized */ void lcd_set_enable_hook(void (*enable_hook)(void)); +#endif /* HAVE_LCD_COLOR */ + #endif /* HAVE_LCD_ENABLE */ void lcd_call_enable_hook(void); -- cgit v1.2.3