From: H.G. Muller Date: Thu, 3 Nov 2011 15:38:57 +0000 (+0100) Subject: Clear board markers when moving to other position X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=b595d12f49b98daeed0b9629ab759c16b897bc7a;p=xboard.git Clear board markers when moving to other position Now the markers from -showTargetSquares would stay on after a first click for the benefit of a click-click move, they would also stay on when not finishing the move, but operating the < > buttons in stead to call up other positions. ForwardInner and BackwardInner now clear the markers, like they also cleared highlights. --- diff --git a/backend.c b/backend.c index f4499df..8d16cf5 100644 --- a/backend.c +++ b/backend.c @@ -14225,6 +14225,8 @@ ForwardInner(target) if (gameMode == EditPosition) return; + MarkTargetSquares(1); + if (gameMode == PlayFromGameFile && !pausing) PauseEvent(); @@ -14330,6 +14332,7 @@ BackwardInner(target) target, currentMove, forwardMostMove); if (gameMode == EditPosition) return; + MarkTargetSquares(1); if (currentMove <= backwardMostMove) { ClearHighlights(); DrawPosition(full_redraw, boards[currentMove]);