Updated Area planning to indicate to Cocoa that alpha values are not premultiplied.
This commit is contained in:
parent
40fae49521
commit
d75187c82a
|
@ -127,6 +127,7 @@ func our_drawRect(self C.id, rect C.struct_xrect) {
|
|||
hasAlpha:YES
|
||||
isPlanar:NO
|
||||
colorSpaceName:NSCalibratedRGBColorSpace // TODO NSDeviceRGBColorSpace?
|
||||
bitmapFormat:NSAlphaNonpremultipliedBitmapFormat
|
||||
bytesPerRow:i.Stride
|
||||
bitsPerPixel:32]
|
||||
[bitmap drawAtPoint:NSMakePoint(cliprect.x, cliprect.y)]
|
||||
|
|
Loading…
Reference in New Issue