From 34299a756c2bf968b60a1d77b1157f8b2290ffcf Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 5 Jan 2009 23:39:16 +0000 Subject: [PATCH] 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 --- apps/plugin.c | 5 +++-- 1 file 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;