From: H.G. Muller Date: Sat, 28 Nov 2009 21:28:00 +0000 (-0800) Subject: correctly apply some check boxes from the option menu X-Git-Tag: v4.4.2~6 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=fd030303a98054d3ad260d79abed97df51064def;p=xboard.git 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. --- 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);