From 02645dbdc1ecba48bab9f3e30459083f586c340d Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Fri, 17 Feb 2006 20:10:31 +0000 Subject: 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 --- apps/plugins/brickmania.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') 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) { if (*rb->current_tick>=count) done=true; } + rb->yield(); } } @@ -1292,6 +1293,7 @@ int game_loop(void){ } if (end > *rb->current_tick) rb->sleep(end-*rb->current_tick); + else rb->yield(); } } -- cgit v1.2.3