summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-10-14 19:12:25 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-10-14 19:12:25 (GMT)
commit106ffe5d2a4e0a066868b450946c81e0ccecc4ff (patch)
tree177a66f65ada8a09ce263978315df4cf1b86134b
parent1470bc986ad9550cff741af15c0dea3c252046c9 (diff)
parent5f4f2d6f94d730017b8c7f729926e2a9a7b7ed4b (diff)
downloadtk-106ffe5d2a4e0a066868b450946c81e0ccecc4ff.zip
tk-106ffe5d2a4e0a066868b450946c81e0ccecc4ff.tar.gz
tk-106ffe5d2a4e0a066868b450946c81e0ccecc4ff.tar.bz2
merge 8.5; update changes
-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);