1
0
Fork 0
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:
Adam Boot 2006-04-03 22:19:11 +00:00
parent db738f7ce4
commit c42c971d6c

View file

@ -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;