DEFAULT_PF_INDEX must equal -1.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@259 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/PlayerOptions.h b/rfbplayer/PlayerOptions.h
index a64e3e7..0ff526e 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 614f5c1..a98ed41 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -891,7 +891,7 @@
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())) {