diff options
author | Silenio Quarti <silenio> | 2002-10-31 03:33:56 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2002-10-31 03:33:56 +0000 |
commit | 68c27054cb6b0e32fe339d62f8684d1d69274b2b (patch) | |
tree | 662196fb4024dbf1b5133d7a46191fc944de57df | |
parent | c2763ac2a55d64a10a600ef227ab248990db2136 (diff) | |
download | eclipse.platform.swt-68c27054cb6b0e32fe339d62f8684d1d69274b2b.tar.gz eclipse.platform.swt-68c27054cb6b0e32fe339d62f8684d1d69274b2b.tar.xz eclipse.platform.swt-68c27054cb6b0e32fe339d62f8684d1d69274b2b.zip |
*** empty log message ***
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/GC.java | 4 |
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,
|