From 7482887beaff21a04cf67a2ec19409f998e7d33b Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Sun, 30 Oct 2011 14:59:47 +0000 Subject: [PATCH] corrected endianess bug introduced in r4742 git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4743 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/rfb/TightDecoder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/com/tigervnc/rfb/TightDecoder.java b/java/com/tigervnc/rfb/TightDecoder.java index 2b97110d..38d63626 100644 --- a/java/com/tigervnc/rfb/TightDecoder.java +++ b/java/com/tigervnc/rfb/TightDecoder.java @@ -78,7 +78,7 @@ public class TightDecoder extends Decoder { if (comp_ctl == rfbTightFill) { int pix; if (cutZeros) { - pix = is.readPixel(3, false); + pix = is.readPixel(3, !bigEndian); } else { pix = (bpp == 8) ? is.readOpaque8() : is.readOpaque24B(); } @@ -127,7 +127,7 @@ public class TightDecoder extends Decoder { case rfbTightFilterPalette: palSize = is.readU8() + 1; if (cutZeros) { - is.readPixels(palette, palSize, 3, false); + is.readPixels(palette, palSize, 3, !bigEndian); } else { for (int i = 0; i < palSize; i++) { palette[i] = (bpp == 8) ? is.readOpaque8() : is.readOpaque24B(); @@ -178,7 +178,7 @@ public class TightDecoder extends Decoder { } } else { if (cutZeros) { - input.readPixels(buf, r.area(), 3, false); + input.readPixels(buf, r.area(), 3, !bigEndian); } else { for (int ptr=0; ptr < dataSize; ptr++) buf[ptr] = input.readU8(); -- 2.39.5