forked from len0rd/rockbox
Fix pause bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9474 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
db738f7ce4
commit
c42c971d6c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue