Sets the colour depth mode to auto when open the new session.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@209 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 4b1d421..72614f1 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -317,8 +317,10 @@
"All files (*.*)\0*.*\0";
ofn.lpstrDefExt = "rfb";
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;
- if (GetOpenFileName(&ofn))
+ if (GetOpenFileName(&ofn)) {
+ colourDepth = DEPTH_AUTO;
openSessionFile(filename);
+ }
}
break;
case ID_CLOSEFILE: