]> source.dussan.org Git - tigervnc.git/commitdiff
Set pixelFormat to the value wich read from the registry.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 19 Mar 2005 11:27:29 +0000 (11:27 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Sat, 19 Mar 2005 11:27:29 +0000 (11:27 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@253 3789f03b-4d11-0410-bbf8-ca57d06f2519

rfbplayer/PlayerOptions.cxx

index 8a8bf360a4fe4b65fa36366df4890f1c23fb0a68..04c578474c746d69b93a569703d3bf31df965b91 100644 (file)
@@ -36,6 +36,7 @@ void PlayerOptions::readFromRegistry() {
     pixelFormatIndex = regKey.getInt(_T("PixelFormatIndex"), DEFAULT_PF);
     regKey.getBinary(_T("PixelFormat"), (void**)&pPF, &pfSize, 
       &PixelFormat(32,24,0,1,255,255,255,16,8,0), sizeof(PixelFormat));
+    setPF(pPF);
     acceptBell = regKey.getBool(_T("AcceptBell"), DEFAULT_ACCEPT_BELL);
     acceptCutText = regKey.getBool(_T("AcceptCutText"), DEFAULT_ACCEPT_CUT_TEXT);
     autoStoreSettings = regKey.getBool(_T("AutoStoreSettings"), DEFAULT_STORE_SETTINGS);