diff options
author | Silenio Quarti <silenio> | 2005-06-07 18:19:14 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2005-06-07 18:19:14 +0000 |
commit | 1fd35ae1a50c374f39a1d54e443f59489974bc0a (patch) | |
tree | e6079bded3323af9076568d0124c99368a790091 | |
parent | 0e9002fe6e242cf1196df7e1db7cca0e1f375209 (diff) | |
download | eclipse.platform.swt-1fd35ae1a50c374f39a1d54e443f59489974bc0a.tar.gz eclipse.platform.swt-1fd35ae1a50c374f39a1d54e443f59489974bc0a.tar.xz eclipse.platform.swt-1fd35ae1a50c374f39a1d54e443f59489974bc0a.zip |
98047 - constant alpha broken
-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 a1a9a9b50d..c3e200ba5d 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 ? 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) { |