From d75187c82a6fb48e06ce3c470a525b714153f2c9 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 13 Mar 2014 12:56:44 -0400 Subject: [PATCH] Updated Area planning to indicate to Cocoa that alpha values are not premultiplied. --- areaplan.md | 1 + 1 file changed, 1 insertion(+) diff --git a/areaplan.md b/areaplan.md index b085aa9..b7e705b 100644 --- a/areaplan.md +++ b/areaplan.md @@ -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)]