From 4764ee04c9c6432ad3cada25a8e87be056815815 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 6 Aug 2009 00:14:40 +0000 Subject: 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 --- apps/screen_access.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'apps/screen_access.c') 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 #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 */ }; -- cgit v1.2.3