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/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())) {