summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2002-04-30 16:00:06 +0000
committerSilenio Quarti <silenio>2002-04-30 16:00:06 +0000
commit12379c93b7ffba070825dedb42b10d20f74aafd3 (patch)
tree345e726f668322ed379d99d6e105b88178224692 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics
parentb42ddd2bdfe9a424ede58ade4c3a8c390b7ce410 (diff)
downloadeclipse.platform.swt-12379c93b7ffba070825dedb42b10d20f74aafd3.tar.gz
eclipse.platform.swt-12379c93b7ffba070825dedb42b10d20f74aafd3.tar.xz
eclipse.platform.swt-12379c93b7ffba070825dedb42b10d20f74aafd3.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
index 4788697787..1768757ada 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
@@ -174,7 +174,10 @@ public void dispose() {
int clipRgn = data.clipRgn;
if (clipRgn != 0) OS.gdk_region_destroy(clipRgn);
Image image = data.image;
- if (image != null) image.memGC = null;
+ if (image != null) {
+ image.memGC = null;
+ if (image.transparentPixel != -1) image.createMask();
+ }
int context = data.context;
if (context != 0) OS.g_object_unref(context);