aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-03-29 15:24:08 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2005-03-29 15:24:08 +0000
commit530a075ff378ae7a76464d291b0e412565b01048 (patch)
treedb6d871f3bb9bdde5897c9f102889ffca166e8f5
parent8c72fe7ec4190e1398ededaf6e2bef9de0cad1b8 (diff)
downloadtigervnc-530a075ff378ae7a76464d291b0e412565b01048.tar.gz
tigervnc-530a075ff378ae7a76464d291b0e412565b01048.zip
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
-rw-r--r--rfbplayer/OptionsDialog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfbplayer/OptionsDialog.h b/rfbplayer/OptionsDialog.h
index c31e3fbf..f3190ebb 100644
--- a/rfbplayer/OptionsDialog.h
+++ b/rfbplayer/OptionsDialog.h
@@ -77,7 +77,7 @@ protected:
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);