VOID SetLoadOptionEnables(HWND hDlg);\r
VOID SetSaveOptionEnables(HWND hDlg);\r
VOID SetTimeControlEnables(HWND hDlg);\r
-void NewSettingEvent(int option, char *command, int value);\r
\r
/*---------------------------------------------------------------------------*\\r
*\r
static Boolean oldShowCoords;\r
static Boolean oldBlindfold;\r
static Boolean oldShowButtonBar;\r
+ static Boolean oldAutoLogo;\r
\r
switch (message) {\r
case WM_INITDIALOG: /* message: initialize dialog box */\r
oldShowCoords = appData.showCoords;\r
oldBlindfold = appData.blindfold;\r
oldShowButtonBar = appData.showButtonBar;\r
+ oldAutoLogo = appData.autoLogo;\r
\r
/* Center the dialog over the application window */\r
CenterWindow (hDlg, GetWindow (hDlg, GW_OWNER));\r
CHECK_BOX(OPT_SaveExtPGN, appData.saveExtendedInfoInPGN);\r
CHECK_BOX(OPT_ExtraInfoInMoveHistory, appData.showEvalInMoveHistory);\r
CHECK_BOX(OPT_HighlightMoveArrow, appData.highlightMoveWithArrow);\r
+ CHECK_BOX(OPT_AutoLogo, appData.autoLogo); // [HGM] logo\r
\r
#undef CHECK_BOX\r
\r
ShowThinkingEvent(); // [HGM] thinking: tests four options\r
appData.testLegality = IS_CHECKED(OPT_TestLegality);\r
appData.highlightMoveWithArrow=IS_CHECKED(OPT_HighlightMoveArrow);\r
+ appData.autoLogo =IS_CHECKED(OPT_AutoLogo); // [HGM] logo\r
\r
#undef IS_CHECKED\r
\r
*/\r
EndDialog(hDlg, TRUE);\r
\r
- if (oldShowButtonBar != appData.showButtonBar) {\r
+ if (oldAutoLogo != appData.autoLogo) { // [HGM] logo: remove any logos when we switch autologo off\r
+ if(oldAutoLogo) first.programLogo = second.programLogo = NULL;\r
+ InitDrawingSizes(boardSize, 0);\r
+ } else if (oldShowButtonBar != appData.showButtonBar) {\r
InitDrawingSizes(boardSize, 0);\r
} else if ((oldShowCoords != appData.showCoords) || \r
(oldBlindfold != appData.blindfold)) {\r
/* Initialize the dialog items */\r
#define CHECK_BOX(x,y) CheckDlgButton(hDlg, (x), (BOOL)(y))\r
\r
+ CHECK_BOX(OPT_AutoKibitz, appData.autoKibitz);\r
CHECK_BOX(OPT_AutoComment, appData.autoComment);\r
CHECK_BOX(OPT_AutoObserve, appData.autoObserve);\r
CHECK_BOX(OPT_GetMoveList, appData.getMoveList);\r
appData.premove = IS_CHECKED(OPT_Premove);\r
appData.premoveWhite = IS_CHECKED(OPT_PremoveWhite);\r
appData.premoveBlack = IS_CHECKED(OPT_PremoveBlack);\r
+ appData.autoKibitz = IS_CHECKED(OPT_AutoKibitz);\r
appData.autoComment = IS_CHECKED(OPT_AutoComment);\r
appData.autoObserve = IS_CHECKED(OPT_AutoObserve);\r
appData.getMoveList = IS_CHECKED(OPT_GetMoveList);\r
// [HGM] book: tick boxes for own book use\r
CheckDlgButton( hDlg, IDC_OwnBook1, (BOOL) appData.firstHasOwnBookUCI );\r
CheckDlgButton( hDlg, IDC_OwnBook2, (BOOL) appData.secondHasOwnBookUCI );\r
+ SetDlgItemInt( hDlg, IDC_BookDep, appData.bookDepth, TRUE );\r
+ SetDlgItemInt( hDlg, IDC_BookStr, appData.bookStrength, TRUE );\r
\r
SendDlgItemMessage( hDlg, IDC_PolyglotDir, EM_SETSEL, 0, -1 );\r
\r
// [HGM] smp: get nr of cores:\r
oldCores = appData.smpCores;\r
appData.smpCores = GetDlgItemInt(hDlg, IDC_Cores, NULL, FALSE );\r
- if(appData.smpCores != oldCores) NewSettingEvent(FALSE, "cores", appData.smpCores);\r
+ if(appData.smpCores != oldCores) NewSettingEvent(FALSE, &(first.maxCores), "cores", appData.smpCores);\r
// [HGM] book: read tick boxes for own book use\r
appData.firstHasOwnBookUCI = (Boolean) IsDlgButtonChecked( hDlg, IDC_OwnBook1 );\r
appData.secondHasOwnBookUCI = (Boolean) IsDlgButtonChecked( hDlg, IDC_OwnBook2 );\r
+ appData.bookDepth = GetDlgItemInt(hDlg, IDC_BookDep, NULL, FALSE );\r
+ appData.bookStrength = GetDlgItemInt(hDlg, IDC_BookStr, NULL, FALSE );\r
\r
if(gameMode == BeginningOfGame) Reset(TRUE, TRUE);\r
EndDialog(hDlg, TRUE);\r