Skip to content

Commit 4655754

Browse files
committed
ENH: MacOSX backend to use sRGB instead of GenericRGB colorspace
1 parent b9ae51c commit 4655754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_macosx.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ static int _copy_agg_buffer(CGContextRef cr, PyObject *renderer)
12051205
const size_t bitsPerPixel = bitsPerComponent * nComponents;
12061206
const size_t bytesPerRow = nComponents * bytesPerComponent * ncols;
12071207

1208-
CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
1208+
CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
12091209
if (!colorspace) {
12101210
_buffer_release(buffer, NULL, 0);
12111211
return 1;

0 commit comments

Comments
 (0)