From 5c615c3430cf1457d721f22a90808edc067fb6ea Mon Sep 17 00:00:00 2001 From: inmarket Date: Tue, 6 Oct 2015 17:27:24 +1000 Subject: [PATCH] Stop overwriting by the bounce ball when switching away from it in the applications/combo demo --- demos/applications/combo/bounce.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demos/applications/combo/bounce.c b/demos/applications/combo/bounce.c index 72e75af8..f0b78266 100644 --- a/demos/applications/combo/bounce.c +++ b/demos/applications/combo/bounce.c @@ -91,8 +91,6 @@ static DECLARE_THREAD_FUNCTION(task, param) { minx = miny = 0; maxx = width; maxy = height; // The clipping window for this frame. while(run) { - gfxYield(); - // Draw one frame gdispStreamStart(winx+minx, winy+miny, maxx-minx, maxy-miny); for (y=miny; h = (bally-y)*ii, y width-radius ? spinspeed=-spinspeed,-dx : dx; dy = bally > height-1.75*floor ? -.04*height : dy+.002*height; + + // Give someone else a go on cooperative os's like RAW32 + gfxYield(); } return 0; }