From cd63bf5b43dae0ac9d9ae1efaba0e23270f65760 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Wed, 3 Feb 2016 09:23:15 +0100 Subject: [PATCH] Clear highlights after moving piece in Edit Position When moving a piece during Edit position the from-square remained highlighted, but the to square was not highlighted, which would create the erroneous impression that the (now-empty) from-square was selected (and ready to obliterate a piece on the next click). Now this highlight is cleared. This was preferred over also highlighting the to-square, because this is not really a move in a game. --- backend.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index 2ccc54d..48a625a 100644 --- a/backend.c +++ b/backend.c @@ -7095,6 +7095,7 @@ UserMoveEvent(int fromX, int fromY, int toX, int toY, int promoChar) } } else boards[0][fromY][fromX] = gatingPiece; + ClearHighlights(); DrawPosition(FALSE, boards[currentMove]); return; } -- 1.7.0.4