diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-01-26 20:14:42 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-01-26 20:14:42 +0000 |
commit | 5629d551d710bd57a1cef129ce5a69b76cbbdd12 (patch) | |
tree | 1196849b9a02ebf39fa5d6c33df1db9334aeead2 /apps/gui/viewport.c | |
parent | 7a73a9cd4e882ebbc37831160ec18d0f251f14bd (diff) | |
download | rockbox-5629d551d710bd57a1cef129ce5a69b76cbbdd12.tar.gz rockbox-5629d551d710bd57a1cef129ce5a69b76cbbdd12.zip |
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
Diffstat (limited to 'apps/gui/viewport.c')
-rw-r--r-- | apps/gui/viewport.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
89 | add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, | 89 | add_event(PLAYBACK_EVENT_NEXTTRACKID3_AVAILABLE, false, |
90 | do_sbs_update_callback); | 90 | do_sbs_update_callback); |
91 | 91 | ||
92 | screens[screen].backdrop_show(BACKDROP_MAIN); | ||
93 | |||
92 | /* remove the left overs from the previous screen. | 94 | /* remove the left overs from the previous screen. |
93 | * could cause a tiny flicker. Redo your screen code if that happens */ | 95 | * could cause a tiny flicker. Redo your screen code if that happens */ |
94 | if (!was_enabled[screen] || force) | 96 | if (!was_enabled[screen] || force) |
@@ -142,7 +144,11 @@ static void toggle_theme(enum screen_type screen, bool force) | |||
142 | else | 144 | else |
143 | { | 145 | { |
144 | FOR_NB_SCREENS(i) | 146 | FOR_NB_SCREENS(i) |
147 | { | ||
148 | screens[i].backdrop_hide(); | ||
145 | screens[i].stop_scroll(); | 149 | screens[i].stop_scroll(); |
150 | } | ||
151 | |||
146 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 152 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
147 | remove_event(LCD_EVENT_ACTIVATION, do_sbs_update_callback); | 153 | remove_event(LCD_EVENT_ACTIVATION, do_sbs_update_callback); |
148 | #endif | 154 | #endif |