X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=0c32929f42365f5d7086c61b9f76b5696532fe30;hb=5d80b2ccea47ecaa59c6c2cfcd47a60fb2a95409;hp=6535dd6df38e91db33400d3bda9f4ef98d7277e7;hpb=028caf53ec6804a6df8153a142b2103952aa8b9e;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 6535dd6..0c32929 100644 --- a/xoptions.c +++ b/xoptions.c @@ -250,7 +250,7 @@ CreateComboPopup (Widget parent, Option *option, int n) extern WindowPlacement wpComment, wpTags, wpMoveHistory; char *trialSound; -static int oldCores, oldPonder; +static int oldCores, oldPonder, oldShow, oldBlind; int MakeColors P((void)); void CreateGCs P((int redo)); void CreateAnyPieces P((void)); @@ -410,6 +410,8 @@ GeneralOptionsOK (int n) int newPonder = appData.ponderNextMove; appData.ponderNextMove = oldPonder; PonderNextMoveEvent(newPonder); + if(!appData.highlightLastMove) ClearHighlights(), ClearPremoveHighlights(); + if(oldShow != appData.showCoords || oldBlind != appData.blindfold) DrawPosition(TRUE, NULL); return 1; } @@ -1427,6 +1429,7 @@ void OptionsProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) { oldPonder = appData.ponderNextMove; + oldShow = appData.showCoords; oldBlind = appData.blindfold; GenericPopUp(generalOptions, _("General Options"), 0); }