Make sure we handle endian problems in the conversion code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3784 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/PixelFormat.h b/common/rfb/PixelFormat.h
index 8adbf91..c1de09a 100644
--- a/common/rfb/PixelFormat.h
+++ b/common/rfb/PixelFormat.h
@@ -64,7 +64,7 @@
bool parse(const char* str);
protected:
- void updateShifts(void);
+ void updateState(void);
public:
int bpp;
@@ -85,6 +85,7 @@
int redConvShift;
int greenConvShift;
int blueConvShift;
+ bool endianMismatch;
};
}