diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-12-17 08:09:05 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-12-17 08:09:05 +0000 |
commit | b72ba0ff43011328549e8563ec06ce90b9ff0526 (patch) | |
tree | a40038500b5bd904cfdb44ec94e71346fe2f9326 /apps/menus | |
parent | c6352b355c9ab5e28579bc42bca92d7d923c45bb (diff) | |
download | rockbox-b72ba0ff43011328549e8563ec06ce90b9ff0526.tar.gz rockbox-b72ba0ff43011328549e8563ec06ce90b9ff0526.zip |
from FS#10771 - fix the clear backdrop option so it clears the full screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24039 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/theme_menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index de0429f483..9c9a2b2c72 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c | |||
@@ -49,6 +49,9 @@ static int clear_main_backdrop(void) | |||
49 | global_settings.backdrop_file[0]=0; | 49 | global_settings.backdrop_file[0]=0; |
50 | backdrop_unload(BACKDROP_MAIN); | 50 | backdrop_unload(BACKDROP_MAIN); |
51 | backdrop_show(BACKDROP_MAIN); | 51 | backdrop_show(BACKDROP_MAIN); |
52 | /* force a full redraw so the whole backdrop is cleared */ | ||
53 | viewportmanager_theme_enable(SCREEN_MAIN, false, NULL); | ||
54 | viewportmanager_theme_undo(SCREEN_MAIN); | ||
52 | settings_save(); | 55 | settings_save(); |
53 | return 0; | 56 | return 0; |
54 | } | 57 | } |
@@ -94,7 +97,6 @@ static int set_color_func(void* color) | |||
94 | colors[c].setting, banned_color); | 97 | colors[c].setting, banned_color); |
95 | settings_save(); | 98 | settings_save(); |
96 | settings_apply(false); | 99 | settings_apply(false); |
97 | send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); | ||
98 | return res; | 100 | return res; |
99 | } | 101 | } |
100 | 102 | ||
@@ -108,7 +110,6 @@ static int reset_color(void) | |||
108 | 110 | ||
109 | settings_save(); | 111 | settings_save(); |
110 | settings_apply(false); | 112 | settings_apply(false); |
111 | send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); | ||
112 | return 0; | 113 | return 0; |
113 | } | 114 | } |
114 | MENUITEM_FUNCTION(set_bg_col, MENU_FUNC_USEPARAM, ID2P(LANG_BACKGROUND_COLOR), | 115 | MENUITEM_FUNCTION(set_bg_col, MENU_FUNC_USEPARAM, ID2P(LANG_BACKGROUND_COLOR), |
@@ -162,7 +163,9 @@ static int statusbar_callback_ex(int action,const struct menu_item_ex *this_item | |||
162 | break; | 163 | break; |
163 | case ACTION_EXIT_MENUITEM: | 164 | case ACTION_EXIT_MENUITEM: |
164 | send_event(GUI_EVENT_STATUSBAR_TOGGLE, NULL); | 165 | send_event(GUI_EVENT_STATUSBAR_TOGGLE, NULL); |
165 | send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); | 166 | /* force a full redraw */ |
167 | viewportmanager_theme_enable(screen, false, NULL); | ||
168 | viewportmanager_theme_undo(screen); | ||
166 | break; | 169 | break; |
167 | } | 170 | } |
168 | return ACTION_REDRAW; | 171 | return ACTION_REDRAW; |