From 5629d551d710bd57a1cef129ce5a69b76cbbdd12 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 26 Jan 2010 20:14:42 +0000 Subject: Accept the last patch FS#10797 with a few changes by me (fixing side effects and adding the new backdrop_hide() to the multi screen api). It changes the hide_bars parameter to mean hide_theme. This makes plugins show the menu backdrop in their backdrop so that they don't look like crap if you have an sbs and look more integrated. I've test about all plugins and all work fine. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24335 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/viewport.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/viewport.c') diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 22eccc161f..3c5249cff9 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -89,6 +89,8 @@ static void toggle_theme(enum screen_type screen, bool force) add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, do_sbs_update_callback); + screens[screen].backdrop_show(BACKDROP_MAIN); + /* remove the left overs from the previous screen. * could cause a tiny flicker. Redo your screen code if that happens */ if (!was_enabled[screen] || force) @@ -142,7 +144,11 @@ static void toggle_theme(enum screen_type screen, bool force) else { FOR_NB_SCREENS(i) + { + screens[i].backdrop_hide(); screens[i].stop_scroll(); + } + #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) remove_event(LCD_EVENT_ACTIVATION, do_sbs_update_callback); #endif -- cgit v1.2.3