From fd030303a98054d3ad260d79abed97df51064def Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 28 Nov 2009 13:28:00 -0800 Subject: [PATCH] correctly apply some check boxes from the option menu Usng the check-boxes in the Option->Adjudications menu to indicate the engine reports absolute scores is now copied directly to the ChessProgramState, from where it is used, in stead of only to appData. This makes the change take effect immediately, in stead of after restarting. --- winboard/woptions.c | 4 ++-- xoptions.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/winboard/woptions.c b/winboard/woptions.c index aaab83b..b7da2ec 100755 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -2770,8 +2770,8 @@ LRESULT CALLBACK EnginePlayOptionsDialog(HWND hDlg, UINT message, WPARAM wParam, appData.ruleMoves = GetDlgItemInt(hDlg, IDC_RuleMoves, NULL, FALSE ); appData.drawRepeats = (int) GetDlgItemInt(hDlg, IDC_DrawRepeats, NULL, FALSE ); - appData.firstScoreIsAbsolute = IS_CHECKED(IDC_ScoreAbs1); - appData.secondScoreIsAbsolute = IS_CHECKED(IDC_ScoreAbs2); + first.scoreIsAbsolute = appData.firstScoreIsAbsolute = IS_CHECKED(IDC_ScoreAbs1); + second.scoreIsAbsolute = appData.secondScoreIsAbsolute = IS_CHECKED(IDC_ScoreAbs2); EndDialog(hDlg, TRUE); return TRUE; diff --git a/xoptions.c b/xoptions.c index c154030..2f0ea15 100644 --- a/xoptions.c +++ b/xoptions.c @@ -603,8 +603,8 @@ void EngineCallback(w, client_data, call_data) // read all switches appData.periodicUpdates = ReadToggle(w1); // appData.hideThinkingFromHuman = ReadToggle(w2); - appData.firstScoreIsAbsolute = ReadToggle(w3); - appData.secondScoreIsAbsolute = ReadToggle(w4); + first.scoreIsAbsolute = appData.firstScoreIsAbsolute = ReadToggle(w3); + second.scoreIsAbsolute = appData.secondScoreIsAbsolute = ReadToggle(w4); appData.testClaims = ReadToggle(w5); appData.checkMates = ReadToggle(w6); appData.materialDraws = ReadToggle(w7); -- 1.7.0.4