From bdf2961ba3c0d6ac1b58d6e4acd748415d4cfdd6 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 16 Nov 2009 01:38:30 +0000 Subject: Fix some drawing problems when displaying the WPS initially with sbs enabled. Move initial display of the wps to wps.c too. Should fix bug 3 of FS#10771. Also change GUI_EVENT_REFRESH event handling so that the passed drawing function is always called, not only when sbs or custom ui vp are used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23644 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetree.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'apps/filetree.c') diff --git a/apps/filetree.c b/apps/filetree.c index 945b9ac..6b56c80 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -528,13 +528,9 @@ int ft_enter(struct tree_context* c) splash(0, ID2P(LANG_WAIT)); if (!settings_load_config(buf,true)) break; - /* do both steps seperately so that the redrawing after theme - * changing is independant of whether the theme has a custom ui - * vp or not */ - send_event(GUI_EVENT_REFRESH, NULL); - /* for the statusbar */ - send_event(GUI_EVENT_ACTIONUPDATE, (void*)true); - tree_drawlists(); + + /* redraw the UI in case the user setting changed apparence */ + send_event(GUI_EVENT_REFRESH, tree_drawlists); splash(HZ, ID2P(LANG_SETTINGS_LOADED)); break; -- cgit v1.1