]> source.dussan.org Git - tigervnc.git/commitdiff
DEFAULT_PF_INDEX must equal -1.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 20 Mar 2005 10:14:50 +0000 (10:14 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sun, 20 Mar 2005 10:14:50 +0000 (10:14 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@259 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/PlayerOptions.h
rfbplayer/rfbplayer.cxx

index a64e3e740aafa4c2bf3ab29b63b8fd47c75a1a3a..0ff526e454fe17e82a04edf6467e4cc996b155b2 100644 (file)
@@ -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
index 614f5c128567f9d9ba8b2c7f56bfe89aeb1241f5..a98ed41717b191b1ef63a43d6a2b154e7387924b 100644 (file)
@@ -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())) {