From 80cb3551eb61cdf240cf24ad0c44016475bf2e61 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 1 Feb 2009 11:34:16 +0000 Subject: Statusbar handling fixes. Fixes FS#9845 - %we/%wd wasnt working WPS no longer resets the viewportmanger more than needed (was doing it twice/draw before) screens can now enable/disable the statusbar easily ignoring the setting instead of needing special handling (fix for the radio screen coming soon) minor glitch introduced in this commit... the statusbar in the WPS might disappear for a fraction of a second when it is entered, I need to track this down... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19894 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 98bbd29..95dec9d 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -636,7 +636,7 @@ static const struct plugin_api rockbox_api = { int plugin_load(const char* plugin, const void* parameter) { int rc; - bool oldbars; + char oldbars; struct plugin_header *hdr; #ifdef SIMULATOR void *pd; @@ -743,11 +743,11 @@ int plugin_load(const char* plugin, const void* parameter) #endif invalidate_icache(); - oldbars = viewportmanager_set_statusbar(false); + oldbars = viewportmanager_set_statusbar(0); rc = hdr->entry_point(parameter); - viewportmanager_set_statusbar(true); + viewportmanager_set_statusbar(oldbars); button_clear_queue(); -- cgit v1.1