Implemented the possibility to add the user defined pixel formats.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@270 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index da47999..3e9357d 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -65,7 +65,6 @@
 // -=- RfbPlayer's defines
 
 #define strcasecmp _stricmp
-#define UPF_REGISTRY_PATH "Software\\TightVnc\\RfbPlayer\\UserDefinedPF"
 #define MAX_SPEED 10.00
 #define CALCULATION_ERROR MAX_SPEED / 1000
 #define MAX_POS_TRACKBAR_RANGE 50
@@ -919,7 +918,7 @@
         options.setPF((PixelFormat *)&cp.pf());
       } else {
         options.autoDetectPF = false;
-        options.setPF(&supportedPF[pixelFormatIndex].PF);
+        options.setPF(&supportedPF[pixelFormatIndex]->PF);
         options.pixelFormat.bigEndian = choosePixelFormatDialog.isBigEndian();
       }
     } else {
@@ -931,7 +930,7 @@
       if (options.autoDetectPF) {
         options.setPF((PixelFormat *)&cp.pf());
       } else {
-        options.setPF(&supportedPF[options.pixelFormatIndex].PF);
+        options.setPF(&supportedPF[options.pixelFormatIndex]->PF);
         options.pixelFormat.bigEndian = options.bigEndianFlag;
       }
     }