diff options
author | Adam Boot <rotator@gmail.com> | 2006-04-03 22:19:11 +0000 |
---|---|---|
committer | Adam Boot <rotator@gmail.com> | 2006-04-03 22:19:11 +0000 |
commit | c42c971d6c2e466d6a9de971aa759460346dc704 (patch) | |
tree | 29bef0105e6c6f9057c96aab02942531bfb5df34 | |
parent | db738f7ce46befc51d233139daa87afe802f81d6 (diff) | |
download | rockbox-c42c971d6c2e466d6a9de971aa759460346dc704.tar.gz rockbox-c42c971d6c2e466d6a9de971aa759460346dc704.zip |
Fix pause bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9474 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-x | apps/plugins/bubbles.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, | |||
2309 | int timeout) { | 2309 | int timeout) { |
2310 | int button; | 2310 | int button; |
2311 | int buttonres; | 2311 | int buttonres; |
2312 | long start; | ||
2312 | 2313 | ||
2313 | button = rb->button_get_w_tmo(timeout); | 2314 | button = rb->button_get_w_tmo(timeout); |
2314 | switch(button){ | 2315 | switch(button){ |
@@ -2337,8 +2338,10 @@ static int bubbles_handlebuttons(struct game_context* bb, bool animblock, | |||
2337 | break; | 2338 | break; |
2338 | 2339 | ||
2339 | case BUBBLES_START: /* pause the game */ | 2340 | case BUBBLES_START: /* pause the game */ |
2341 | start = *rb->current_tick; | ||
2340 | rb->splash(1, true, "Paused"); | 2342 | rb->splash(1, true, "Paused"); |
2341 | while(rb->button_get(true) != (BUBBLES_START)); | 2343 | while(rb->button_get(true) != (BUBBLES_START)); |
2344 | bb->startedshot += *rb->current_tick-start; | ||
2342 | bubbles_drawboard(bb); | 2345 | bubbles_drawboard(bb); |
2343 | rb->lcd_update(); | 2346 | rb->lcd_update(); |
2344 | break; | 2347 | break; |