diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-02-17 20:10:31 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-02-17 20:10:31 +0000 |
commit | 02645dbdc1ecba48bab9f3e30459083f586c340d (patch) | |
tree | 3b2b48de319762064bfa96590f7aa356e4ae6c17 /apps/plugins/brickmania.c | |
parent | 5a1d77de83b7a6ba20e70d107ed1b5d6d0e3ce15 (diff) | |
download | rockbox-02645dbdc1ecba48bab9f3e30459083f586c340d.tar.gz rockbox-02645dbdc1ecba48bab9f3e30459083f586c340d.zip |
Fix playback stopping during playback due to lack of yields when framerate falls below threshold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8719 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/brickmania.c')
-rw-r--r-- | apps/plugins/brickmania.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 074051d2fe..937c4e473c 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c | |||
@@ -557,6 +557,7 @@ void sleep (int secs) { | |||
557 | if (*rb->current_tick>=count) | 557 | if (*rb->current_tick>=count) |
558 | done=true; | 558 | done=true; |
559 | } | 559 | } |
560 | rb->yield(); | ||
560 | } | 561 | } |
561 | 562 | ||
562 | } | 563 | } |
@@ -1292,6 +1293,7 @@ int game_loop(void){ | |||
1292 | } | 1293 | } |
1293 | if (end > *rb->current_tick) | 1294 | if (end > *rb->current_tick) |
1294 | rb->sleep(end-*rb->current_tick); | 1295 | rb->sleep(end-*rb->current_tick); |
1296 | else rb->yield(); | ||
1295 | } | 1297 | } |
1296 | } | 1298 | } |
1297 | 1299 | ||