mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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);
|
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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -41,12 +41,10 @@ void backdrop_hide(void);
|
||||||
|
|
||||||
#if defined(HAVE_REMOTE_LCD)
|
#if defined(HAVE_REMOTE_LCD)
|
||||||
/* no main backdrop, stubs! */
|
/* no main backdrop, stubs! */
|
||||||
#if LCD_REMOTE_DEPTH > 1
|
|
||||||
bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename);
|
bool remote_backdrop_load(enum backdrop_type bdrop,const char* filename);
|
||||||
void remote_backdrop_unload(enum backdrop_type bdrop);
|
void remote_backdrop_unload(enum backdrop_type bdrop);
|
||||||
void remote_backdrop_show(enum backdrop_type bdrop);
|
void remote_backdrop_show(enum backdrop_type bdrop);
|
||||||
void remote_backdrop_hide(void);
|
void remote_backdrop_hide(void);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _BACKDROP_H */
|
#endif /* _BACKDROP_H */
|
||||||
|
|
|
@ -288,13 +288,11 @@ struct screen screens[NB_SCREENS] =
|
||||||
.backlight_off=&remote_backlight_off,
|
.backlight_off=&remote_backlight_off,
|
||||||
.is_backlight_on=&is_remote_backlight_on,
|
.is_backlight_on=&is_remote_backlight_on,
|
||||||
.backlight_set_timeout=&remote_backlight_set_timeout,
|
.backlight_set_timeout=&remote_backlight_set_timeout,
|
||||||
|
|
||||||
#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
|
|
||||||
.backdrop_load=&remote_backdrop_load,
|
.backdrop_load=&remote_backdrop_load,
|
||||||
.backdrop_unload=&remote_backdrop_unload,
|
.backdrop_unload=&remote_backdrop_unload,
|
||||||
.backdrop_show=&remote_backdrop_show,
|
.backdrop_show=&remote_backdrop_show,
|
||||||
.backdrop_hide=&remote_backdrop_hide,
|
.backdrop_hide=&remote_backdrop_hide,
|
||||||
#endif
|
|
||||||
#ifdef HAVE_BUTTONBAR
|
#ifdef HAVE_BUTTONBAR
|
||||||
.has_buttonbar=false,
|
.has_buttonbar=false,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue