diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-03 13:27:19 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-01-03 13:27:19 +0000 |
| commit | 4b472de39b30c079ff846aec83d2da33cc0adcc5 (patch) | |
| tree | f2435c9307c6aa495f4dc34c098290ddad3f97c3 /apps/plugins/lamp.c | |
| parent | 3681ff197d3cf5393df3d56d7b6f7b39af0fc47f (diff) | |
| download | rockbox-4b472de39b30c079ff846aec83d2da33cc0adcc5.zip rockbox-4b472de39b30c079ff846aec83d2da33cc0adcc5.tar.gz rockbox-4b472de39b30c079ff846aec83d2da33cc0adcc5.tar.bz2 rockbox-4b472de39b30c079ff846aec83d2da33cc0adcc5.tar.xz | |
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/plugins/lamp.c')
| -rw-r--r-- | apps/plugins/lamp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/plugins/lamp.c b/apps/plugins/lamp.c index e355ee4..ace6545 100644 --- a/apps/plugins/lamp.c +++ b/apps/plugins/lamp.c @@ -110,6 +110,7 @@ static int colorset[NUM_COLORSETS][3] = { { 255, 255, 255 } , /* white */ /* this is the plugin entry point */ enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) { + long button; (void)parameter; rb = api; @@ -167,7 +168,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame rb->lcd_clear_display(); rb->lcd_update(); - switch(rb->button_get(true)) + switch((button = rb->button_get(true))) { case LAMP_RIGHT: #ifdef LAMP_NEXT @@ -196,9 +197,10 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame case (LAMP_PREV|BUTTON_REL): #endif /* LAMP_PREV */ /* eat these... */ - break; + break; default: - quit = true; + if (!IS_SYSEVENT(button)) + quit = true; } } while (!quit); |