diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-05 23:39:16 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-05 23:39:16 +0000 |
commit | 34299a756c2bf968b60a1d77b1157f8b2290ffcf (patch) | |
tree | ed3f2f1f0dc1d6f32dfafc62680dfea23ea3f22a /apps | |
parent | 33c21a07654341db8d5381bf00763170c4e46070 (diff) |
fix the delay between exiting a plugin and having the statusbar drawn. Does plugin_load() really need to clear both displays?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19691 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index cc0a94bb38..2a6761024b 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -627,6 +627,7 @@ static const struct plugin_api rockbox_api = { int plugin_load(const char* plugin, const void* parameter) { int rc; + bool oldbars; struct plugin_header *hdr; #ifdef SIMULATOR void *pd; @@ -732,7 +733,7 @@ int plugin_load(const char* plugin, const void* parameter) #endif invalidate_icache(); - viewportmanager_set_statusbar(false); + oldbars = viewportmanager_set_statusbar(false); rc = hdr->entry_point(&rockbox_api, parameter); @@ -771,7 +772,7 @@ int plugin_load(const char* plugin, const void* parameter) #endif - + viewportmanager_set_statusbar(oldbars); if (pfn_tsr_exit == NULL) plugin_loaded = false; |