From 7bd64558c77750f8cb1082cb4dab1e2a8cf532d0 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 2 Dec 2012 22:44:55 +0100 Subject: [PATCH] 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. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } -- 1.7.0.4