Added new property bigEndianFlag to PlayerOptions class.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@260 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/PlayerOptions.cxx b/rfbplayer/PlayerOptions.cxx
index 394b2b1..c4bbfaa 100644
--- a/rfbplayer/PlayerOptions.cxx
+++ b/rfbplayer/PlayerOptions.cxx
@@ -34,6 +34,7 @@
     regKey.createKey(HKEY_CURRENT_USER, _T("Software\\TightVnc\\RfbPlayer"));
     autoPlay = regKey.getBool(_T("AutoPlay"), DEFAULT_AUTOPLAY);
     autoDetectPF = regKey.getBool(_T("AutoDetectPixelFormat"), DEFAULT_AUTOPF);
+    bigEndianFlag = regKey.getBool(_T("BigEndianFlag"), DEFAULT_BIG_ENDIAN);
     pixelFormatIndex = regKey.getInt(_T("PixelFormatIndex"), DEFAULT_PF_INDEX);
     regKey.getBinary(_T("PixelFormat"), (void**)&pPF, &pfSize, 
       &PixelFormat(32,24,0,1,255,255,255,16,8,0), sizeof(PixelFormat));
@@ -56,6 +57,7 @@
     regKey.createKey(HKEY_CURRENT_USER, _T("Software\\TightVnc\\RfbPlayer"));
     regKey.setBool(_T("AutoPlay"), autoPlay);
     regKey.setBool(_T("AutoDetectPixelFormat"), autoDetectPF);
+    regKey.setBool(_T("BigEndianFlag"), bigEndianFlag);
     regKey.setInt(_T("PixelFormatIndex"), pixelFormatIndex);
     regKey.setBinary(_T("PixelFormat"), &pixelFormat, sizeof(PixelFormat));
     regKey.setBool(_T("AcceptBell"), acceptBell);
@@ -73,6 +75,7 @@
   initTime = DEFAULT_INIT_TIME;
   playbackSpeed = DEFAULT_SPEED;
   autoDetectPF = DEFAULT_AUTOPF;
+  bigEndianFlag = DEFAULT_BIG_ENDIAN;
   pixelFormatIndex = DEFAULT_PF_INDEX;
   pixelFormat = PixelFormat(32,24,0,1,255,255,255,16,8,0);
   frameScale = DEFAULT_FRAME_SCALE;
diff --git a/rfbplayer/PlayerOptions.h b/rfbplayer/PlayerOptions.h
index 0ff526e..c4238d3 100644
--- a/rfbplayer/PlayerOptions.h
+++ b/rfbplayer/PlayerOptions.h
@@ -46,6 +46,7 @@
 #define DEFAULT_FRAME_SCALE 100
 #define DEFAULT_ACCEPT_BELL FALSE
 #define DEFAULT_ACCEPT_CUT_TEXT FALSE
+#define DEFAULT_BIG_ENDIAN FALSE
 #define DEFAULT_LOOP_PLAYBACK FALSE
 #define DEFAULT_ASK_PF FALSE
 #define DEFAULT_AUTOPLAY FALSE
@@ -67,6 +68,7 @@
   bool autoPlay;
   bool fullScreen;
   bool autoDetectPF;
+  bool bigEndianFlag;
   long pixelFormatIndex;
   PixelFormat pixelFormat;
   bool acceptBell;