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/plugins/lib/oldmenuapi.c | 2 ++ apps/plugins/star.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/lib/oldmenuapi.c b/apps/plugins/lib/oldmenuapi.c index 9c371d531e..864291fd4d 100644 --- a/apps/plugins/lib/oldmenuapi.c +++ b/apps/plugins/lib/oldmenuapi.c @@ -94,6 +94,7 @@ int menu_show(int m) bool exit = false; int key; + char bars = rb->viewportmanager_set_statusbar(VP_ALLSCREENS); rb->gui_synclist_draw(&(menus[m].synclist)); while (!exit) { key = rb->get_action(CONTEXT_MAINMENU,HZ/2); @@ -123,6 +124,7 @@ int menu_show(int m) break; } } + rb->viewportmanager_set_statusbar(bars); return MENU_SELECTED_EXIT; } diff --git a/apps/plugins/star.c b/apps/plugins/star.c index 931161308a..c4251cd223 100644 --- a/apps/plugins/star.c +++ b/apps/plugins/star.c @@ -1030,7 +1030,7 @@ static int star_menu(void) } while(!menu_quit) { - switch(rb->do_menu(&menu, &selection, vp, true)) + switch(rb->do_menu(&menu, &selection, vp, false)) { case 0: menu_quit = true; -- cgit v1.2.3