From 65e0a0c934b7d07e588cf8034dbec80333540930 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 18 Nov 2006 13:42:09 +0000 Subject: fix bubbles for good this time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11547 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bubbles.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 254539603f..2ff145b5f7 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -2338,8 +2338,10 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, long start; const struct button_mapping *plugin_contexts[] = {generic_left_right_fire,generic_actions}; - button = pluginlib_getaction(rb,timeout,plugin_contexts,2); + if (timeout < 0) + timeout = 0; + button = pluginlib_getaction(rb,timeout,plugin_contexts,2); #ifdef HAS_BUTTON_HOLD if (rb->button_hold()) button = BUBBLES_START; @@ -2390,7 +2392,8 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, case BUBBLES_QUIT: /* end the game */ return BB_END; - case ACTION_UNKNOWN: /* no button pressed */ + case ACTION_UNKNOWN: + case ACTION_NONE: /* no button pressed */ break; default: -- cgit v1.2.3