X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwoptions.c;h=9c1942bfeab739d1dd2548426f0413d976de8748;hb=1f0538d4e71f928ed4163cd5d39cba2d305cf685;hp=2c92e4d4aca46d20d7e3eccec838c255e13f6101;hpb=8ee0292f69ffa3ebef03640cc5944d9c60e86bb8;p=xboard.git diff --git a/winboard/woptions.c b/winboard/woptions.c index 2c92e4d..9c1942b 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -850,7 +850,6 @@ int radioButton[] = { -1, OPT_VariantShogi, -1, // Chu - OPT_VariantXiangqi, OPT_VariantCourier, OPT_VariantGothic, OPT_VariantCapablanca, @@ -865,10 +864,11 @@ int radioButton[] = { OPT_VariantGreat, -1, // Twilight, OPT_VariantMakruk, - OPT_VariantASEAN, OPT_VariantSChess, OPT_VariantGrand, OPT_VariantSpartan, // Spartan + OPT_VariantXiangqi, + OPT_VariantASEAN, OPT_VariantLion, -2 // sentinel }; @@ -2535,7 +2535,7 @@ LoadOptions(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) SetDlgItemInt(hDlg, OPT_Stretch, appData.stretch, FALSE); CheckDlgButton(hDlg, OPT_Reversed, appData.ignoreColors); CheckDlgButton(hDlg, OPT_Mirror, appData.findMirror); - SetDlgItemText(hDlg, OPT_Range, ""); + SetDlgItemText(hDlg, OPT_Counts, ""); switch (appData.searchMode) { case 1: CheckDlgButton(hDlg, OPT_Exact, TRUE); @@ -2580,9 +2580,9 @@ LoadOptions(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) appData.searchMode = LoadOptionsWhichRadio(hDlg); appData.ignoreColors = IsDlgButtonChecked(hDlg, OPT_Reversed); appData.findMirror = IsDlgButtonChecked(hDlg, OPT_Mirror); - appData.eloThreshold1 = GetDlgItemText(hDlg, OPT_Range, buf, MSG_SIZ); + GetDlgItemText(hDlg, OPT_Counts, buf, MSG_SIZ); appData.minPieces = appData.maxPieces = 0; - sscanf(buf, "%d-%d", appData.minPieces, appData.maxPieces); + sscanf(buf, "%d-%d", &appData.minPieces, &appData.maxPieces); if(appData.maxPieces < appData.minPieces) appData.maxPieces = appData.minPieces; EndDialog(hDlg, TRUE); return TRUE;