diff options
author | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2005-03-20 10:14:50 +0000 |
---|---|---|
committer | george82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519> | 2005-03-20 10:14:50 +0000 |
commit | e827a0a2a031dcc328c81fd57e9cc522ed624921 (patch) | |
tree | 68d78c2f4526d79268f935be1a114b35ba8d2fc8 /rfbplayer | |
parent | 5a6df07da93a559fa1c23b002319f9ebf4fd0933 (diff) | |
download | tigervnc-e827a0a2a031dcc328c81fd57e9cc522ed624921.tar.gz tigervnc-e827a0a2a031dcc328c81fd57e9cc522ed624921.zip |
DEFAULT_PF_INDEX must equal -1.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@259 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfbplayer')
-rw-r--r-- | rfbplayer/PlayerOptions.h | 2 | ||||
-rw-r--r-- | rfbplayer/rfbplayer.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rfbplayer/PlayerOptions.h b/rfbplayer/PlayerOptions.h index a64e3e74..0ff526e4 100644 --- a/rfbplayer/PlayerOptions.h +++ b/rfbplayer/PlayerOptions.h @@ -39,7 +39,7 @@ // Default options values //#define DEFAULT_PF 0 -#define DEFAULT_PF_INDEX 0 +#define DEFAULT_PF_INDEX -1 #define DEFAULT_AUTOPF TRUE #define DEFAULT_INIT_TIME -1 #define DEFAULT_SPEED 1.0 diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx index 614f5c12..a98ed417 100644 --- a/rfbplayer/rfbplayer.cxx +++ b/rfbplayer/rfbplayer.cxx @@ -891,7 +891,7 @@ void RfbPlayer::serverInit() { throw rdr::Exception("This version plays only true color session!"); // Set the session pixel format - static long pixelFormatIndex = -1; + static long pixelFormatIndex = DEFAULT_PF_INDEX; if (options.askPixelFormat) { ChoosePixelFormatDialog choosePixelFormatDialog(pixelFormatIndex, &supportedPF); if (choosePixelFormatDialog.showDialog(getMainHandle())) { |