mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
3173ed933e
commit
713fc7e48e
3 changed files with 22 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
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -40,13 +40,10 @@ void backdrop_hide(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_REMOTE_LCD)
|
#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);
|
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 */
|
||||||
|
|
|
@ -289,12 +289,10 @@ struct screen screens[NB_SCREENS] =
|
||||||
.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