Commits

Jeff Sickel committed a53c734

NSDeviceBlackColorSpace deprecated patch (from Ian Ennis)

Comments (0)

Files changed (1)

gui-osx-cocoa/screen.m

 		samplesPerPixel:2
 		hasAlpha:YES
 		isPlanar:YES
-		colorSpaceName:NSDeviceBlackColorSpace
+		colorSpaceName:NSDeviceWhiteColorSpace
 		bytesPerRow:2
 		bitsPerPixel:1];
 
 	[r getBitmapDataPlanes:plane];
 
 	for(b=0; b<2*16; b++){
-		plane[0][b] = c->set[b];
+		plane[0][b] = c->set[b] ^ 0xFF;
 		plane[1][b] = c->set[b] | c->clr[b];
 	}
 	p = NSMakePoint(-c->offset.x, -c->offset.y);