summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-08-06 00:14:40 +0000
committerThomas Martitz <kugel@rockbox.org>2009-08-06 00:14:40 +0000
commit4764ee04c9c6432ad3cada25a8e87be056815815 (patch)
tree490154e71180349bb1991bd04445ddc0287a5db3 /apps/screen_access.c
parent4632fc0682cfc3e2490435d616c7fa0b48088125 (diff)
downloadrockbox-4764ee04c9c6432ad3cada25a8e87be056815815.tar.gz
rockbox-4764ee04c9c6432ad3cada25a8e87be056815815.tar.bz2
rockbox-4764ee04c9c6432ad3cada25a8e87be056815815.zip
Add backdrop functions to the multiscreen api and add a enum backdrop_type parameter for different backdrops (main, wps), symplifying calls and removing dozens of #ifdefs (stubs added for non-backdrop displays that can't do backdrops).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22176 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 2f928b7360..d0b483f3f4 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -31,6 +31,7 @@
#include <icons.h>
#include "screen_access.h"
+#include "backdrop.h"
/* some helper functions to calculate metrics on the fly */
static int screen_helper_getcharwidth(void)
@@ -197,8 +198,11 @@ struct screen screens[NB_SCREENS] =
.backlight_off=&backlight_off,
.is_backlight_on=&is_backlight_on,
.backlight_set_timeout=&backlight_set_timeout,
+ .backdrop_load=&backdrop_load,
+ .backdrop_unload=&backdrop_unload,
+ .backdrop_show=&backdrop_show,
#ifdef HAVE_BUTTONBAR
- .has_buttonbar=false
+ .has_buttonbar=false,
#endif
},
#if NB_SCREENS == 2
@@ -278,7 +282,10 @@ struct screen screens[NB_SCREENS] =
.backlight_on=&remote_backlight_on,
.backlight_off=&remote_backlight_off,
.is_backlight_on=&is_remote_backlight_on,
- .backlight_set_timeout=&remote_backlight_set_timeout
+ .backlight_set_timeout=&remote_backlight_set_timeout,
+ .backdrop_load=&remote_backdrop_load,
+ .backdrop_unload=&remote_backdrop_unload,
+ .backdrop_show=&remote_backdrop_show,
}
#endif /* HAVE_REMOTE_LCD */
};