summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes <krbarnes>2009-09-24 20:02:45 +0000
committerKevin Barnes <krbarnes>2009-09-24 20:02:45 +0000
commitb4953cbf0c617ddc4ea031c7895caba84fe0c3b7 (patch)
tree0697b6c725316fa70f2f77e84d17edbb8f618ff5
parent1558841b1896e9e706af6006087cd106ba6d2af3 (diff)
downloadeclipse.platform.swt-b4953cbf0c617ddc4ea031c7895caba84fe0c3b7.tar.gz
eclipse.platform.swt-b4953cbf0c617ddc4ea031c7895caba84fe0c3b7.tar.xz
eclipse.platform.swt-b4953cbf0c617ddc4ea031c7895caba84fe0c3b7.zip
232560 Icons disappear in PackageExplorer when mouse is over an item
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java6
1 files changed, 3 insertions, 3 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 9fce4af35a..06f1a36d2f 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
@@ -1089,12 +1089,12 @@ void drawImageXRender(Image srcImage, int srcX, int srcY, int srcWidth, int srcH
short[] xRects = new short[nRects[0] * 4];
for (int i=0, j=0; i<nRects[0]; i++, j+=4) {
OS.memmove(rect, rects[0] + (i * GdkRectangle.sizeof), GdkRectangle.sizeof);
- xRects[j] = (short)rect.x;
- xRects[j+1] = (short)rect.y;
+ xRects[j] = (short)(translateX + rect.x);
+ xRects[j+1] = (short)(translateY + rect.y);
xRects[j+2] = (short)rect.width;
xRects[j+3] = (short)rect.height;
}
- OS.XRenderSetPictureClipRectangles(xDisplay, destPict, translateX, translateY, xRects, nRects[0]);
+ OS.XRenderSetPictureClipRectangles(xDisplay, destPict, 0, 0, xRects, nRects[0]);
if (clipping != data.clipRgn && clipping != data.damageRgn) {
OS.gdk_region_destroy(clipping);
}