PlayerOptions::pixelFormat changed to pixelFormatIndex.
Added new property pixelFormat to PlayerOptions class.
Added supportedPF to RfbPlayer class.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@252 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/OptionsDialog.h b/rfbplayer/OptionsDialog.h
index 7cc0a52..484791a 100644
--- a/rfbplayer/OptionsDialog.h
+++ b/rfbplayer/OptionsDialog.h
@@ -40,7 +40,7 @@
SendMessage(combo, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)("8 bit depth (RGB332)"));
SendMessage(combo, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)("16 bit depth (RGB655)"));
SendMessage(combo, CB_ADDSTRING, 0, (LPARAM)(LPCTSTR)("24 bit depth (RGB888)"));
- SendMessage(combo, CB_SETCURSEL, options->pixelFormat, 0);
+ SendMessage(combo, CB_SETCURSEL, options->pixelFormatIndex, 0);
if (options->askPixelFormat) {
setItemChecked(IDC_ASK_PF, true);
enableItem(IDC_PIXELFORMAT, false);
@@ -52,7 +52,7 @@
}
virtual bool onOk() {
if (!isItemChecked(IDC_ASK_PF)) {
- options->pixelFormat = SendMessage(combo, CB_GETCURSEL, 0, 0);
+ options->pixelFormatIndex = SendMessage(combo, CB_GETCURSEL, 0, 0);
}
options->askPixelFormat = isItemChecked(IDC_ASK_PF);
options->acceptBell = isItemChecked(IDC_ACCEPT_BELL);