summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Forsyth <charles.forsyth@gmail.com>2015-10-10 15:02:33 +0100
committerCharles Forsyth <charles.forsyth@gmail.com>2015-10-10 15:02:33 +0100
commitb3f188a0e1cc438f408f3a8bbf89491c8e62df62 (patch)
tree5a9aca64368112938ab865e3cfdc4c45d90ce04c
parentad3465d51a4735221d0cff9009ebe90f77e37dcc (diff)
avoid race for needflush
-rw-r--r--emu/MacOSX/win.c2
1 files changed, 1 insertions, 1 deletions
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);