summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2002-07-09 17:57:02 +0000
committerSilenio Quarti <silenio>2002-07-09 17:57:02 +0000
commit715380dedab8017fdd9718f0add11d6826de95d3 (patch)
treef352e7c632bef4c466c86467e5b3b893e2ab7f1a /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics
parent4c56a53cfd9a292469160d1db9a29f0c5394cdc7 (diff)
downloadeclipse.platform.swt-715380dedab8017fdd9718f0add11d6826de95d3.tar.gz
eclipse.platform.swt-715380dedab8017fdd9718f0add11d6826de95d3.tar.xz
eclipse.platform.swt-715380dedab8017fdd9718f0add11d6826de95d3.zip
21386
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.java4
1 files changed, 2 insertions, 2 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 d38f9a7edb..beae8780ef 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
@@ -426,9 +426,9 @@ void drawImageMask(Image srcImage, int srcX, int srcY, int srcWidth, int srcHeig
int pixels = OS.gdk_pixbuf_get_pixels(pixbuf);
if (gdkImagePtr == 0) SWT.error(SWT.ERROR_NO_HANDLES);
byte[] line = new byte[stride];
- for (int y=0; y<srcWidth; y++) {
+ for (int y=0; y<srcHeight; y++) {
OS.memmove(line, pixels + (y * stride), stride);
- for (int x=0; x<srcHeight; x++) {
+ for (int x=0; x<srcWidth; x++) {
if (OS.gdk_image_get_pixel(gdkImagePtr, x + srcX, y + srcY) != 0) {
line[x*4+3] = (byte)0xFF;
} else {