summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-01-26 20:14:42 +0000
committerThomas Martitz <kugel@rockbox.org>2010-01-26 20:14:42 +0000
commit5629d551d710bd57a1cef129ce5a69b76cbbdd12 (patch)
tree1196849b9a02ebf39fa5d6c33df1db9334aeead2 /apps/plugins
parent7a73a9cd4e882ebbc37831160ec18d0f251f14bd (diff)
downloadrockbox-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/plugins')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index eab1d0a00a..b3f81444bb 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -2019,6 +2019,7 @@ void update_scroll_animation(void)
2019void cleanup(void *parameter) 2019void cleanup(void *parameter)
2020{ 2020{
2021 (void) parameter; 2021 (void) parameter;
2022 int i;
2022#ifdef HAVE_ADJUSTABLE_CPU_FREQ 2023#ifdef HAVE_ADJUSTABLE_CPU_FREQ
2023 rb->cpu_boost(false); 2024 rb->cpu_boost(false);
2024#endif 2025#endif
@@ -2029,6 +2030,8 @@ void cleanup(void *parameter)
2029#ifdef USEGSLIB 2030#ifdef USEGSLIB
2030 grey_release(); 2031 grey_release();
2031#endif 2032#endif
2033 FOR_NB_SCREENS(i)
2034 rb->viewportmanager_theme_undo(i, false);
2032} 2035}
2033 2036
2034/** 2037/**
@@ -2076,7 +2079,7 @@ int settings_menu(void)
2076 }; 2079 };
2077 2080
2078 do { 2081 do {
2079 selection=rb->do_menu(&settings_menu,&selection, NULL, false); 2082 selection=rb->do_menu(&settings_menu,&selection, NULL, true);
2080 switch(selection) { 2083 switch(selection) {
2081 case 0: 2084 case 0:
2082 rb->set_bool("Show FPS", &show_fps); 2085 rb->set_bool("Show FPS", &show_fps);
@@ -2168,7 +2171,7 @@ int main_menu(void)
2168#endif 2171#endif
2169 "Settings", "Return", "Quit"); 2172 "Settings", "Return", "Quit");
2170 while (1) { 2173 while (1) {
2171 switch (rb->do_menu(&main_menu,&selection, NULL, false)) { 2174 switch (rb->do_menu(&main_menu,&selection, NULL, true)) {
2172 case PF_GOTO_WPS: /* WPS */ 2175 case PF_GOTO_WPS: /* WPS */
2173 return -2; 2176 return -2;
2174#if PF_PLAYBACK_CAPABLE 2177#if PF_PLAYBACK_CAPABLE
@@ -2732,11 +2735,11 @@ int main(void)
2732 2735
2733enum plugin_status plugin_start(const void *parameter) 2736enum plugin_status plugin_start(const void *parameter)
2734{ 2737{
2735 int ret; 2738 int ret, i;
2736 (void) parameter; 2739 (void) parameter;
2737#if LCD_DEPTH > 1 2740
2738 rb->lcd_set_backdrop(NULL); 2741 FOR_NB_SCREENS(i)
2739#endif 2742 rb->viewportmanager_theme_enable(i, false, NULL);
2740 /* Turn off backlight timeout */ 2743 /* Turn off backlight timeout */
2741 backlight_force_on(); /* backlight control in lib/helper.c */ 2744 backlight_force_on(); /* backlight control in lib/helper.c */
2742#ifdef HAVE_ADJUSTABLE_CPU_FREQ 2745#ifdef HAVE_ADJUSTABLE_CPU_FREQ