From 8c37e421037901996aba857e8b893111829a0f1b Mon Sep 17 00:00:00 2001 From: george82 Date: Sun, 20 Mar 2005 11:38:12 +0000 Subject: [PATCH] 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 --- rfbplayer/PlayerOptions.cxx | 3 +++ rfbplayer/PlayerOptions.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/rfbplayer/PlayerOptions.cxx b/rfbplayer/PlayerOptions.cxx index 394b2b15..c4bbfaaf 100644 --- a/rfbplayer/PlayerOptions.cxx +++ b/rfbplayer/PlayerOptions.cxx @@ -34,6 +34,7 @@ void PlayerOptions::readFromRegistry() { 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 @@ void PlayerOptions::writeToRegistry() { 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 @@ void PlayerOptions::writeDefaults() { 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 0ff526e4..c4238d32 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 @@ public: bool autoPlay; bool fullScreen; bool autoDetectPF; + bool bigEndianFlag; long pixelFormatIndex; PixelFormat pixelFormat; bool acceptBell; -- 2.39.5