From 572d213ab35a497c10eab2f88d0a1f11c36bb71c Mon Sep 17 00:00:00 2001 From: Silenio Quarti Date: Thu, 6 Sep 2012 01:29:00 -0400 Subject: Bug 382175 - [Cairo] Images created with external GdkPixmap* can't be drawn using GC.drawImage() --- .../org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit