From: H.G.Muller Date: Tue, 10 May 2016 18:26:56 +0000 (+0200) Subject: Fix highlights clearing when highlight last move off X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=73715a1df07d11edf04826941c916dd9515c5faf Fix highlights clearing when highlight last move off When moves are not highlighted, the selected piece still is. But this highlight should be erased after the move. --- diff --git a/backend.c b/backend.c index 2a34146..d7788cb 100644 --- a/backend.c +++ b/backend.c @@ -7945,6 +7945,7 @@ LeftClick (ClickType clickType, int xPix, int yPix) if(saveAnimate && !appData.animate && currentMove != oldMove && // drag-move was performed Explode(boards[currentMove-1], fromX, fromY, toX, toY)) DrawPosition(TRUE, boards[currentMove]); + else DrawPosition(FALSE, NULL); fromX = fromY = -1; flashing = 0; }