diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-10-30 14:59:47 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-10-30 14:59:47 +0000 |
commit | 7482887beaff21a04cf67a2ec19409f998e7d33b (patch) | |
tree | 61ecf3c0b92a828197e0c2a195390ec27eee8573 /java/com | |
parent | ad78f752566d6cf699cf492641bae73e509e420b (diff) | |
download | tigervnc-7482887beaff21a04cf67a2ec19409f998e7d33b.tar.gz tigervnc-7482887beaff21a04cf67a2ec19409f998e7d33b.zip |
corrected endianess bug introduced in r4742
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4743 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com')
-rw-r--r-- | java/com/tigervnc/rfb/TightDecoder.java | 6 |
1 files 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(); |