diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-06-08 18:19:43 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-06-08 18:19:43 +0000 |
commit | be214c944503aa250c117b527bfec5e3b01f70ee (patch) | |
tree | e8b0b21fd5a917a8167916026414f90c2b6adffe | |
parent | eebde2a3676f7dd11011fabd7c4d74f0cb6532d5 (diff) | |
download | rockbox-be214c944503aa250c117b527bfec5e3b01f70ee.tar.gz rockbox-be214c944503aa250c117b527bfec5e3b01f70ee.zip |
Fix a problem that the statusbar was redrawn to late and not really in sync with the lists when changing loading a (theme) .cfg or changing the colors witht the color picker. Now both, the statusbar and the tree lists are redrawn instantly after settings_apply() (even before the "Theme loaded" splash).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21222 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/filetree.c | 1 | ||||
-rw-r--r-- | apps/gui/viewport.c | 3 | ||||
-rw-r--r-- | apps/settings.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index 8fd7be6da5..d4681ae2c7 100644 --- a/apps/filetree.c +++ b/apps/filetree.c | |||
@@ -507,6 +507,7 @@ int ft_enter(struct tree_context* c) | |||
507 | splash(0, ID2P(LANG_WAIT)); | 507 | splash(0, ID2P(LANG_WAIT)); |
508 | if (!settings_load_config(buf,true)) | 508 | if (!settings_load_config(buf,true)) |
509 | break; | 509 | break; |
510 | gui_synclist_draw(&tree_lists); | ||
510 | splash(HZ, ID2P(LANG_SETTINGS_LOADED)); | 511 | splash(HZ, ID2P(LANG_SETTINGS_LOADED)); |
511 | break; | 512 | break; |
512 | 513 | ||
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index f8223f7af5..c5b81a76cc 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c | |||
@@ -121,13 +121,12 @@ int viewportmanager_set_statusbar(int enabled) | |||
121 | 121 | ||
122 | void viewportmanager_draw_statusbars(void* data) | 122 | void viewportmanager_draw_statusbars(void* data) |
123 | { | 123 | { |
124 | (void)data; | ||
125 | int i; | 124 | int i; |
126 | 125 | ||
127 | FOR_NB_SCREENS(i) | 126 | FOR_NB_SCREENS(i) |
128 | { | 127 | { |
129 | if (showing_bars(i)) | 128 | if (showing_bars(i)) |
130 | gui_statusbar_draw(&statusbars.statusbars[i], false); | 129 | gui_statusbar_draw(&statusbars.statusbars[i], (bool)data); |
131 | } | 130 | } |
132 | } | 131 | } |
133 | 132 | ||
diff --git a/apps/settings.c b/apps/settings.c index 0457f879c6..6652141f9c 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -66,7 +66,7 @@ | |||
66 | #include "filetypes.h" | 66 | #include "filetypes.h" |
67 | #include "option_select.h" | 67 | #include "option_select.h" |
68 | #include "backdrop.h" | 68 | #include "backdrop.h" |
69 | 69 | #include "appevents.h" | |
70 | #if CONFIG_TUNER | 70 | #if CONFIG_TUNER |
71 | #include "radio.h" | 71 | #include "radio.h" |
72 | #endif | 72 | #endif |
@@ -972,6 +972,7 @@ void settings_apply(bool read_disk) | |||
972 | enc_global_settings_apply(); | 972 | enc_global_settings_apply(); |
973 | #endif | 973 | #endif |
974 | list_init_viewports(NULL); | 974 | list_init_viewports(NULL); |
975 | send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); | ||
975 | } | 976 | } |
976 | 977 | ||
977 | 978 | ||