From b3f188a0e1cc438f408f3a8bbf89491c8e62df62 Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Sat, 10 Oct 2015 15:02:33 +0100 Subject: avoid race for needflush --- emu/MacOSX/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emu') diff --git a/emu/MacOSX/win.c b/emu/MacOSX/win.c index a2ec4ffa..ffe54a6b 100644 --- a/emu/MacOSX/win.c +++ b/emu/MacOSX/win.c @@ -136,10 +136,10 @@ flushproc(void *a) for(;;) { if(needflush) { drawqlock(); + needflush = false; QDBeginCGContext(GetWindowPort(theWindow), &context); CGContextFlush(context); QDEndCGContext(GetWindowPort(theWindow), &context); - needflush = false; drawqunlock(); } usleep(33333); -- cgit v1.2.3