Added UserPixelFormatsDialog.
It allows user to define the user pixel formats.
Now "Edit User PF" button on Options Dialog is working.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@267 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/OptionsDialog.h b/rfbplayer/OptionsDialog.h
index a0ac388..5ca67af 100644
--- a/rfbplayer/OptionsDialog.h
+++ b/rfbplayer/OptionsDialog.h
@@ -18,9 +18,8 @@
// -=- OptionsDialog.h
-#include <rfb_win32/Dialog.h>
-
#include <rfbplayer/PlayerOptions.h>
+#include <rfbplayer/UserPixelFormatsDialog.h>
class OptionsDialog : public rfb::win32::Dialog {
public:
@@ -89,6 +88,10 @@
setItemChecked(IDC_AUTOPLAY, DEFAULT_AUTOPLAY);
setItemChecked(IDC_BIG_ENDIAN, DEFAULT_BIG_ENDIAN);
}
+ if (item == IDC_EDIT_UPF) {
+ UserPixelFormatsDialog UpfListDialog(supportedPF);
+ UpfListDialog.showDialog(handle);
+ }
return false;
}