From 4b472de39b30c079ff846aec83d2da33cc0adcc5 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 3 Jan 2009 13:27:19 +0000 Subject: a few more button/statusbar fixes... * hopefully fix the last of the plugins which dont handle the enw SYS event. * fix FS#9750 - WPS's which dont specify (or force the wps on) wernt showing the statusbar at all * lamp, battery_bench, *_flash button handling fixes * plugins using the core menu code will again show the statusbar git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19656 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 3 +-- apps/gui/statusbar.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/gui') diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 2b1d6417e2..e218c123f3 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -85,8 +85,7 @@ static void gui_wps_statusbar_draw(struct gui_wps *wps, bool force) if (wps->data->wps_sb_tag) draw = wps->data->show_sb_on_wps; - if (!draw) - viewportmanager_set_statusbar(false); + viewportmanager_set_statusbar(draw); } #else #define gui_wps_statusbar_draw(wps, force) diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 29b80112f7..b4e99f8885 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -341,7 +341,7 @@ void gui_statusbar_draw(struct gui_statusbar * bar, bool force_redraw) if(!display->has_disk_led && bar->info.led) gui_statusbar_led(display); #endif - display->update_rect(0, 0, display->getwidth(), STATUSBAR_HEIGHT); + display->update_viewport(); bar->lastinfo = bar->info; } #endif /* HAVE_LCD_BITMAP */ -- cgit v1.2.3