summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
authorAdam Boot <rotator@gmail.com>2006-04-03 22:19:11 +0000
committerAdam Boot <rotator@gmail.com>2006-04-03 22:19:11 +0000
commitc42c971d6c2e466d6a9de971aa759460346dc704 (patch)
tree29bef0105e6c6f9057c96aab02942531bfb5df34 /apps/plugins/bubbles.c
parentdb738f7ce46befc51d233139daa87afe802f81d6 (diff)
downloadrockbox-c42c971d6c2e466d6a9de971aa759460346dc704.zip
rockbox-c42c971d6c2e466d6a9de971aa759460346dc704.tar.gz
rockbox-c42c971d6c2e466d6a9de971aa759460346dc704.tar.bz2
rockbox-c42c971d6c2e466d6a9de971aa759460346dc704.tar.xz
Fix pause bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9474 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bubbles.c')
-rwxr-xr-xapps/plugins/bubbles.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 9ff9c9a..7ff8b62 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;