diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-09-06 01:29:00 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-09-06 01:29:00 -0400 |
commit | 572d213ab35a497c10eab2f88d0a1f11c36bb71c (patch) | |
tree | cc00043f4eb892a77365a3e1af9490eb3b0adb0a | |
parent | 9539c1db0b4491869a779f5bf6ac311f2ac247d7 (diff) | |
download | eclipse.platform.swt-572d213ab35a497c10eab2f88d0a1f11c36bb71c.tar.gz eclipse.platform.swt-572d213ab35a497c10eab2f88d0a1f11c36bb71c.tar.xz eclipse.platform.swt-572d213ab35a497c10eab2f88d0a1f11c36bb71c.zip |
Bug 382175 - [Cairo] Images created with external GdkPixmap* can't be drawn using GC.drawImage()
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java index 917dad9c5a..4367e36358 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java @@ -879,6 +879,8 @@ void createSurface() { OS.gdk_drawable_get_size(pixmap, w, h); } int width = w[0], height = h[0]; + this.width = width; + this.height = height; if (mask != 0 || alpha != -1 || alphaData != null) { int /*long*/ pixbuf = OS.gdk_pixbuf_new(OS.GDK_COLORSPACE_RGB, true, 8, width, height); if (pixbuf == 0) SWT.error(SWT.ERROR_NO_HANDLES); |