Fixed the bug with wrong detection the session pixel format when
application run with command line parameters.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@278 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 3afe647..518fb2b 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -941,6 +941,8 @@
options.setPF(&supportedPF[options.pixelFormatIndex]->PF);
options.pixelFormat.bigEndian = options.bigEndianFlag;
}
+ } else if (options.autoDetectPF) {
+ options.setPF((PixelFormat *)&cp.pf());
}
}
cp.setPF(options.pixelFormat);