summaryrefslogtreecommitdiff
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.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 @@
31#include <icons.h> 31#include <icons.h>
32 32
33#include "screen_access.h" 33#include "screen_access.h"
34#include "backdrop.h"
34 35
35/* some helper functions to calculate metrics on the fly */ 36/* some helper functions to calculate metrics on the fly */
36static int screen_helper_getcharwidth(void) 37static int screen_helper_getcharwidth(void)
@@ -197,8 +198,11 @@ struct screen screens[NB_SCREENS] =
197 .backlight_off=&backlight_off, 198 .backlight_off=&backlight_off,
198 .is_backlight_on=&is_backlight_on, 199 .is_backlight_on=&is_backlight_on,
199 .backlight_set_timeout=&backlight_set_timeout, 200 .backlight_set_timeout=&backlight_set_timeout,
201 .backdrop_load=&backdrop_load,
202 .backdrop_unload=&backdrop_unload,
203 .backdrop_show=&backdrop_show,
200#ifdef HAVE_BUTTONBAR 204#ifdef HAVE_BUTTONBAR
201 .has_buttonbar=false 205 .has_buttonbar=false,
202#endif 206#endif
203 }, 207 },
204#if NB_SCREENS == 2 208#if NB_SCREENS == 2
@@ -278,7 +282,10 @@ struct screen screens[NB_SCREENS] =
278 .backlight_on=&remote_backlight_on, 282 .backlight_on=&remote_backlight_on,
279 .backlight_off=&remote_backlight_off, 283 .backlight_off=&remote_backlight_off,
280 .is_backlight_on=&is_remote_backlight_on, 284 .is_backlight_on=&is_remote_backlight_on,
281 .backlight_set_timeout=&remote_backlight_set_timeout 285 .backlight_set_timeout=&remote_backlight_set_timeout,
286 .backdrop_load=&remote_backdrop_load,
287 .backdrop_unload=&remote_backdrop_unload,
288 .backdrop_show=&remote_backdrop_show,
282 } 289 }
283#endif /* HAVE_REMOTE_LCD */ 290#endif /* HAVE_REMOTE_LCD */
284}; 291};