summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-01-03 13:27:19 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-01-03 13:27:19 +0000
commit4b472de39b30c079ff846aec83d2da33cc0adcc5 (patch)
treef2435c9307c6aa495f4dc34c098290ddad3f97c3 /apps/gui
parent3681ff197d3cf5393df3d56d7b6f7b39af0fc47f (diff)
downloadrockbox-4b472de39b30c079ff846aec83d2da33cc0adcc5.tar.gz
rockbox-4b472de39b30c079ff846aec83d2da33cc0adcc5.zip
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
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c3
-rw-r--r--apps/gui/statusbar.c2
2 files changed, 2 insertions, 3 deletions
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)
85 if (wps->data->wps_sb_tag) 85 if (wps->data->wps_sb_tag)
86 draw = wps->data->show_sb_on_wps; 86 draw = wps->data->show_sb_on_wps;
87 87
88 if (!draw) 88 viewportmanager_set_statusbar(draw);
89 viewportmanager_set_statusbar(false);
90} 89}
91#else 90#else
92#define gui_wps_statusbar_draw(wps, force) 91#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)
341 if(!display->has_disk_led && bar->info.led) 341 if(!display->has_disk_led && bar->info.led)
342 gui_statusbar_led(display); 342 gui_statusbar_led(display);
343#endif 343#endif
344 display->update_rect(0, 0, display->getwidth(), STATUSBAR_HEIGHT); 344 display->update_viewport();
345 bar->lastinfo = bar->info; 345 bar->lastinfo = bar->info;
346 } 346 }
347#endif /* HAVE_LCD_BITMAP */ 347#endif /* HAVE_LCD_BITMAP */