mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
devdraw: only one flushproc, please (OS X)
R=rsc http://codereview.appspot.com/799045
This commit is contained in:
parent
bbdebeff97
commit
f50c3e956f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue