From: H.G. Muller Date: Sun, 2 Dec 2012 21:44:55 +0000 (+0100) Subject: Fix move highlighting with animation off X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7bd64558c77750f8cb1082cb4dab1e2a8cf532d0;p=xboard.git Fix move highlighting with animation off In WB the moving of SetHighlights to after the animation had broken the highlighting of engine moves, because it was also moved after DrawPosition. While it is DrawPosition that actually draws the highlights. Now it has been moved to just before DrawPosition. --- diff --git a/backend.c b/backend.c index 93c3dcf..849259e 100644 --- a/backend.c +++ b/backend.c @@ -9748,12 +9748,12 @@ ShowMove (int fromX, int fromY, int toX, int toY) if (instant) return; DisplayMove(currentMove - 1); - DrawPosition(FALSE, boards[currentMove]); if (!pausing || gameMode == PlayFromGameFile || gameMode == AnalyzeFile) { if (appData.highlightLastMove) { // [HGM] moved to after DrawPosition, as with arrow it could redraw old board SetHighlights(fromX, fromY, toX, toY); } } + DrawPosition(FALSE, boards[currentMove]); DisplayBothClocks(); HistorySet(parseList,backwardMostMove,forwardMostMove,currentMove-1); }