diff options
author | Silenio Quarti <silenio> | 2005-06-07 18:20:25 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-06-07 18:20:25 +0000 |
commit | 70e248bf5ea827d3db067893f71e76d06f5846cf (patch) | |
tree | fc27765dc64eb53ec3c9fca68eb4a6d6cae17e86 | |
parent | 1fd35ae1a50c374f39a1d54e443f59489974bc0a (diff) | |
download | eclipse.platform.swt-70e248bf5ea827d3db067893f71e76d06f5846cf.tar.gz eclipse.platform.swt-70e248bf5ea827d3db067893f71e76d06f5846cf.tar.xz eclipse.platform.swt-70e248bf5ea827d3db067893f71e76d06f5846cf.zip |
98047 - constant alpha broken again
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Image.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Image.java index c3e200ba5d..39c45f1453 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Image.java @@ -729,7 +729,7 @@ void init(Device device, ImageData image) { } int colorspace = device.colorspace; int transparency = image.getTransparencyType(); - int alphaInfo = transparency == SWT.TRANSPARENCY_NONE || image.alpha != -1 ? OS.kCGImageAlphaNoneSkipFirst : OS.kCGImageAlphaFirst; + int alphaInfo = transparency == SWT.TRANSPARENCY_NONE && image.alpha == -1 ? OS.kCGImageAlphaNoneSkipFirst : OS.kCGImageAlphaFirst; handle = OS.CGImageCreate(width, height, 8, 32, width * 4, colorspace, alphaInfo, provider, null, true, 0); OS.CGDataProviderRelease(provider); if (handle == 0) { |