diff options
author | Silenio Quarti | 2002-03-16 22:09:54 +0000 |
---|---|---|
committer | Silenio Quarti | 2002-03-16 22:09:54 +0000 |
commit | 5c56b8576a80b22c2564d92ceb40930d5bb526c6 (patch) | |
tree | 481aa05e802b66073c53a5af9965701c730a83f7 | |
parent | 21892980b713722b00fd37f2cf57ebee1e87ffdb (diff) | |
download | eclipse.platform.swt-5c56b8576a80b22c2564d92ceb40930d5bb526c6.tar.gz eclipse.platform.swt-5c56b8576a80b22c2564d92ceb40930d5bb526c6.tar.xz eclipse.platform.swt-5c56b8576a80b22c2564d92ceb40930d5bb526c6.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java index 7a815e27e6..d894d325c3 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Image.java @@ -188,7 +188,7 @@ public Image(Device device, Image srcImage, int flag) { int height = h[0];
int drawable = OS.XDefaultRootWindow(xDisplay);
/* Don't create the mask here if flag is SWT.IMAGE_GRAY. See below.*/
- if (flag != SWT.IMAGE_GRAY && srcImage.mask != 0) {
+ if (flag != SWT.IMAGE_GRAY && (srcImage.mask != 0 || srcImage.transparentPixel != -1)) {
/* Generate the mask if necessary. */
if (srcImage.transparentPixel != -1) srcImage.createMask();
int mask = OS.XCreatePixmap(xDisplay, drawable, width, height, 1);
|