summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-10-14 02:29:24 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-10-14 02:29:24 (GMT)
commit5f4f2d6f94d730017b8c7f729926e2a9a7b7ed4b (patch)
tree11ea29f99e6f0ed6e14c1376bdc2f3d5f67053b4 /macosx/tkMacOSXDraw.c
parent6b0fb819e1e3cf2ace970c1ba7cbd850a8db4b79 (diff)
downloadtk-5f4f2d6f94d730017b8c7f729926e2a9a7b7ed4b.zip
tk-5f4f2d6f94d730017b8c7f729926e2a9a7b7ed4b.tar.gz
tk-5f4f2d6f94d730017b8c7f729926e2a9a7b7ed4b.tar.bz2
Fix for bug fb35eb59dd, thanks to Paul Walton for the report and Marc Culler for the patch
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 2d725a7..d4b2c85 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -463,13 +463,13 @@ CreateCGImageWithXImage(
* Color image
*/
- CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
+ CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
bitsPerComponent = 8;
bitsPerPixel = 32;
bitmapInfo = (image->byte_order == MSBFirst ?
kCGBitmapByteOrder32Big : kCGBitmapByteOrder32Little) |
- kCGImageAlphaNoneSkipFirst;
+ kCGImageAlphaNoneSkipFirst;
data = memcpy(ckalloc(len), image->data + image->xoffset, len);
if (data) {
provider = CGDataProviderCreateWithData(data, data, len, releaseData);