]> source.dussan.org Git - tigervnc.git/commitdiff
Sets the colour depth mode to auto when open the new session.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Mon, 21 Feb 2005 13:32:39 +0000 (13:32 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Mon, 21 Feb 2005 13:32:39 +0000 (13:32 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@209 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/rfbplayer.cxx

index 4b1d42112df46b619cc0484a2d22e15fde72d0ad..72614f176979aacb459e285da0e19b3bd40aee2a 100644 (file)
@@ -317,8 +317,10 @@ RfbPlayer::processMainMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                           "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: