Fix remote backdrop crashes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24357 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a6bd83a315
commit
6f0f98da1d
3 changed files with 23 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -41,12 +41,10 @@ void backdrop_hide(void);
|
|||
|
||||
#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 */
|
||||
|
|
|
@ -288,13 +288,11 @@ struct screen screens[NB_SCREENS] =
|
|||
.backlight_off=&remote_backlight_off,
|
||||
.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
|
||||
|
|
Loading…
Reference in a new issue