fix crashing with remote lcd's

git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_5@24356 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-01-28 06:51:16 +00:00
parent 3173ed933e
commit 713fc7e48e
3 changed files with 22 additions and 5 deletions

View file

@ -211,7 +211,29 @@ void remote_backdrop_hide(void)
{
lcd_remote_set_backdrop(NULL);
}
#else
/* api functions */
bool remote_backdrop_load(enum backdrop_type bdrop,
const char *filename)
{
(void)bdrop; (void)filename;
return true;
}
void remote_backdrop_show(enum backdrop_type bdrop)
{
(void)bdrop;
}
void remote_backdrop_unload(enum backdrop_type bdrop)
{
(void)bdrop;
}
void remote_backdrop_hide(void)
{
}
#endif

View file

@ -40,13 +40,10 @@ void backdrop_hide(void);
#endif
#if defined(HAVE_REMOTE_LCD)
/* no main backdrop, stubs! */
#if LCD_REMOTE_DEPTH > 1
bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename);
void remote_backdrop_unload(enum backdrop_type bdrop);
void remote_backdrop_show(enum backdrop_type bdrop);
void remote_backdrop_hide(void);
#endif
#endif
#endif /* _BACKDROP_H */

View file

@ -289,12 +289,10 @@ struct screen screens[NB_SCREENS] =
.is_backlight_on=&is_remote_backlight_on,
.backlight_set_timeout=&remote_backlight_set_timeout,
#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
.backdrop_load=&remote_backdrop_load,
.backdrop_unload=&remote_backdrop_unload,
.backdrop_show=&remote_backdrop_show,
.backdrop_hide=&remote_backdrop_hide,
#endif
#ifdef HAVE_BUTTONBAR
.has_buttonbar=false,
#endif