Updated Area planning to indicate to Cocoa that alpha values are not premultiplied.

This commit is contained in:
Pietro Gagliardi 2014-03-13 12:56:44 -04:00
parent 40fae49521
commit d75187c82a
1 changed files with 1 additions and 0 deletions

View File

@ -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)]