Fixed the bug with resetting the player options (pixelFormatIndex) to defaults.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@280 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/OptionsDialog.h b/rfbplayer/OptionsDialog.h
index c31e3fb..f3190eb 100644
--- a/rfbplayer/OptionsDialog.h
+++ b/rfbplayer/OptionsDialog.h
@@ -77,7 +77,7 @@
enableItem(IDC_BIG_ENDIAN, !isItemChecked(IDC_ASK_PF));
}
if (item == IDC_DEFAULT) {
- SendMessage(combo, CB_SETCURSEL, DEFAULT_PF_INDEX, 0);
+ SendMessage(combo, CB_SETCURSEL, DEFAULT_PF_INDEX + 1, 0);
enableItem(IDC_PIXELFORMAT, !DEFAULT_ASK_PF);
setItemChecked(IDC_ASK_PF, DEFAULT_ASK_PF);
setItemChecked(IDC_ACCEPT_BELL, DEFAULT_ACCEPT_BELL);