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
This commit is contained in:
parent
33c21a0765
commit
34299a756c
1 changed files with 3 additions and 2 deletions
|
@ -627,6 +627,7 @@ static const struct plugin_api rockbox_api = {
|
||||||
int plugin_load(const char* plugin, const void* parameter)
|
int plugin_load(const char* plugin, const void* parameter)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
bool oldbars;
|
||||||
struct plugin_header *hdr;
|
struct plugin_header *hdr;
|
||||||
#ifdef SIMULATOR
|
#ifdef SIMULATOR
|
||||||
void *pd;
|
void *pd;
|
||||||
|
@ -732,7 +733,7 @@ int plugin_load(const char* plugin, const void* parameter)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
invalidate_icache();
|
invalidate_icache();
|
||||||
viewportmanager_set_statusbar(false);
|
oldbars = viewportmanager_set_statusbar(false);
|
||||||
|
|
||||||
rc = hdr->entry_point(&rockbox_api, parameter);
|
rc = hdr->entry_point(&rockbox_api, parameter);
|
||||||
|
|
||||||
|
@ -771,7 +772,7 @@ int plugin_load(const char* plugin, const void* parameter)
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
viewportmanager_set_statusbar(oldbars);
|
||||||
if (pfn_tsr_exit == NULL)
|
if (pfn_tsr_exit == NULL)
|
||||||
plugin_loaded = false;
|
plugin_loaded = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue