From c42c971d6c2e466d6a9de971aa759460346dc704 Mon Sep 17 00:00:00 2001 From: Adam Boot Date: Mon, 3 Apr 2006 22:19:11 +0000 Subject: Fix pause bug git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9474 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bubbles.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c index 9ff9c9a2d2..7ff8b62554 100755 --- a/apps/plugins/bubbles.c +++ b/apps/plugins/bubbles.c @@ -2309,6 +2309,7 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, int timeout) { int button; int buttonres; + long start; button = rb->button_get_w_tmo(timeout); switch(button){ @@ -2337,8 +2338,10 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, break; case BUBBLES_START: /* pause the game */ + start = *rb->current_tick; rb->splash(1, true, "Paused"); while(rb->button_get(true) != (BUBBLES_START)); + bb->startedshot += *rb->current_tick-start; bubbles_drawboard(bb); rb->lcd_update(); break; -- cgit v1.2.3