PUSHBUTTON "&Play",OPT_PlaySound,188,47,50,14\r
END\r
\r
-DLG_GeneralOptions DIALOG DISCARDABLE 0, 0, 250, 183\r
+DLG_GeneralOptions DIALOG DISCARDABLE 0, 0, 250, 197\r
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU\r
CAPTION "General Options"\r
FONT 8, "MS Sans Serif"\r
BEGIN\r
- DEFPUSHBUTTON "OK",IDOK,110,164,50,14\r
- PUSHBUTTON "Cancel",IDCANCEL,166,164,50,14\r
+ DEFPUSHBUTTON "OK",IDOK,110,178,50,14\r
+ PUSHBUTTON "Cancel",IDCANCEL,166,178,50,14\r
CONTROL "Always on &Top",OPT_AlwaysOnTop,"Button",\r
BS_AUTOCHECKBOX | WS_TABSTOP,4,6,126,10\r
CONTROL "Highlight Last &Move",OPT_HighlightLastMove,"Button",\r
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,146,126,10\r
CONTROL "Highlight with Arro&w",OPT_HighlightMoveArrow,\r
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,131,145,126,10\r
+ CONTROL "Displa&y Logos",OPT_AutoLogo,\r
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,4,160,126,10\r
END\r
\r
DLG_IcsOptions DIALOGEX 0, 0, 302, 268\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