diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2015-10-10 15:02:33 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2015-10-10 15:02:33 +0100 |
| commit | b3f188a0e1cc438f408f3a8bbf89491c8e62df62 (patch) | |
| tree | 5a9aca64368112938ab865e3cfdc4c45d90ce04c /emu | |
| parent | ad3465d51a4735221d0cff9009ebe90f77e37dcc (diff) | |
avoid race for needflush
Diffstat (limited to 'emu')
| -rw-r--r-- | emu/MacOSX/win.c | 2 |
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); |
