summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changes2
-rw-r--r--macosx/tkMacOSXDraw.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/changes b/changes
index 7e0fcff..3d490d9 100644
--- a/changes
+++ b/changes
@@ -6962,4 +6962,6 @@ Many revisions to better support a Cygwin environment (nijtmans)
2014-10-11 (bug)[810c43] [text] elide changes advance epoch (vogel)
+2014-10-14 (bug)[fb35eb] fix PNG transparency appearance (walton,culler)
+
--- Released 8.5.17, October 25, 2014 --- http://core.tcl.tk/tk/ for details
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);