diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/devdraw/osx-screen-carbon.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/devdraw/osx-screen-carbon.m b/src/cmd/devdraw/osx-screen-carbon.m index d4720be7..6f3b4312 100644 --- a/src/cmd/devdraw/osx-screen-carbon.m +++ b/src/cmd/devdraw/osx-screen-carbon.m @@ -61,6 +61,7 @@ struct { int kalting; // last keystroke was Kalt int touched; // last mouse event was touchCallback int collapsed; // parked in dock + int flushing; // flushproc has started NSMutableArray* devicelist; } osx; @@ -871,7 +872,10 @@ _flushmemscreen(Rectangle r) qlock(&osx.flushlock); if(osx.windowctx == nil){ QDBeginCGContext(GetWindowPort(osx.window), &osx.windowctx); - proccreate(flushproc, nil, 256*1024); + if(!osx.flushing) { + proccreate(flushproc, nil, 256*1024); + osx.flushing = 1; + } } cgr.origin.x = r.min.x; |