X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwoptions.c;h=93dde9ef2e7438580192b4938ca23db4d4fdfaae;hb=a8aa209e5f4ae95e54ebe54d6cf23fccfe75d1a8;hp=4d071ce809cf967ab37686a4888495d7780fa5ca;hpb=25377d4376b9a02e4ea36d8683bec3e87e8b99e0;p=xboard.git diff --git a/winboard/woptions.c b/winboard/woptions.c index 4d071ce..93dde9e 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -187,6 +187,7 @@ GeneralOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) CHECK_BOX(OPT_ExtraInfoInMoveHistory, appData.showEvalInMoveHistory); CHECK_BOX(OPT_HighlightMoveArrow, appData.highlightMoveWithArrow); CHECK_BOX(OPT_AutoLogo, appData.autoLogo); // [HGM] logo + CHECK_BOX(OPT_SmartMove, appData.oneClick); // [HGM] one-click #undef CHECK_BOX @@ -235,6 +236,7 @@ GeneralOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) appData.testLegality = IS_CHECKED(OPT_TestLegality); appData.highlightMoveWithArrow=IS_CHECKED(OPT_HighlightMoveArrow); appData.autoLogo =IS_CHECKED(OPT_AutoLogo); // [HGM] logo + appData.oneClick =IS_CHECKED(OPT_SmartMove); // [HGM] one-click #undef IS_CHECKED @@ -784,9 +786,10 @@ VariantWhichRadio(HWND hDlg) (IsDlgButtonChecked(hDlg, OPT_Variant3Check) ? Variant3Check : (IsDlgButtonChecked(hDlg, OPT_VariantGreat) ? VariantGreat : (IsDlgButtonChecked(hDlg, OPT_VariantGiveaway) ? VariantGiveaway : - (IsDlgButtonChecked(hDlg, OPT_VariantTwilight) ? VariantTwilight : + (IsDlgButtonChecked(hDlg, OPT_VariantTwilight) ? VariantSpartan : (IsDlgButtonChecked(hDlg, OPT_VariantMakruk) ? VariantMakruk : - VariantNormal ))))))))))))))))))))))))))))); + (IsDlgButtonChecked(hDlg, OPT_VariantSChess) ? VariantSChess : + VariantNormal )))))))))))))))))))))))))))))); } LRESULT CALLBACK @@ -883,12 +886,15 @@ NewVariantDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) case VariantGiveaway: CheckDlgButton(hDlg, OPT_VariantGiveaway, TRUE); break; - case VariantTwilight: + case VariantSpartan: CheckDlgButton(hDlg, OPT_VariantTwilight, TRUE); break; case VariantMakruk: CheckDlgButton(hDlg, OPT_VariantMakruk, TRUE); break; + case VariantSChess: + CheckDlgButton(hDlg, OPT_VariantSChess, TRUE); + break; default: ; }