summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2002-10-31 03:33:56 +0000
committerSilenio Quarti <silenio>2002-10-31 03:33:56 +0000
commit68c27054cb6b0e32fe339d62f8684d1d69274b2b (patch)
tree662196fb4024dbf1b5133d7a46191fc944de57df
parentc2763ac2a55d64a10a600ef227ab248990db2136 (diff)
downloadeclipse.platform.swt-68c27054cb6b0e32fe339d62f8684d1d69274b2b.tar.gz
eclipse.platform.swt-68c27054cb6b0e32fe339d62f8684d1d69274b2b.tar.xz
eclipse.platform.swt-68c27054cb6b0e32fe339d62f8684d1d69274b2b.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java
index f8fb05f38e..d59cc7a5cf 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java
@@ -563,8 +563,8 @@ static int scalePixmap(int display, int pixmap, int srcX, int srcY, int srcWidth
xImage.data = bufPtr;
OS.memmove(xImagePtr, xImage, XImage.sizeof);
byte[] buf = new byte[bufSize];
- int srcOrder = xSrcImage.bits_per_pixel == 8 ? xSrcImage.byte_order : xSrcImage.bitmap_bit_order;
- int destOrder = xImage.bits_per_pixel == 8 ? xImage.byte_order : xImage.bitmap_bit_order;
+ int srcOrder = xSrcImage.bits_per_pixel == 1 ? xSrcImage.bitmap_bit_order : xSrcImage.byte_order;
+ int destOrder = xImage.bits_per_pixel == 1 ? xImage.bitmap_bit_order : xImage.byte_order;
ImageData.blit(ImageData.BLIT_SRC,
srcData, xSrcImage.bits_per_pixel, xSrcImage.bytes_per_line, srcOrder, 0, 0, srcWidth, srcHeight, null, null, null,
ImageData.ALPHA_OPAQUE, null, 0, 0, 0,