forked from len0rd/rockbox
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
This commit is contained in:
parent
19d1cacb1a
commit
ee593c95e2
6 changed files with 13 additions and 9 deletions
|
@ -133,7 +133,7 @@ static const struct plugin_api rockbox_api = {
|
|||
#ifdef HAVE_LCD_INVERT
|
||||
lcd_set_invert_display,
|
||||
#endif /* HAVE_LCD_INVERT */
|
||||
#ifdef HAVE_LCD_ENABLE
|
||||
#if defined(HAVE_LCD_ENABLE) && defined(HAVE_LCD_COLOR)
|
||||
lcd_set_enable_hook,
|
||||
&button_queue,
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue