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/bookmark.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'apps/bookmark.c') diff --git a/apps/bookmark.c b/apps/bookmark.c index 892a3d35b2..5b92767796 100644 --- a/apps/bookmark.c +++ b/apps/bookmark.c @@ -164,6 +164,7 @@ bool bookmark_autobookmark(void) char* bookmark; if (!system_check()) return false; + int i; audio_pause(); /* first pause playback */ bookmark = create_bookmark(); @@ -191,12 +192,9 @@ bool bookmark_autobookmark(void) str(LANG_CONFIRM_WITH_BUTTON)}; const struct text_message message={lines, 2}; #endif -#if LCD_DEPTH > 1 - show_main_backdrop(); /* switch to main backdrop as we may come from wps */ -#endif -#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 - show_remote_main_backdrop(); -#endif + FOR_NB_SCREENS(i) + screens[i].backdrop_show(BACKDROP_MAIN); + if(gui_syncyesno_run(&message, NULL, NULL)==YESNO_YES) { if (global_settings.autocreatebookmark == BOOKMARK_RECENT_ONLY_ASK) -- cgit v1.2.3