From 8984be1d9e68b26eb3e0c9bfaa89434d915e80bf Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 16 Feb 2012 13:16:13 +0100 Subject: [PATCH] Don't leave piece selected after piece menu PieceMenuEvent left the just introduced piece selected, which is almost never what one wants, as it makes it jump to the next square when selects. Which is especially annoying if it captures the piece you wanted to grab... --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/backend.c b/backend.c index d71b499..d08aea0 100644 --- a/backend.c +++ b/backend.c @@ -13909,6 +13909,8 @@ EditPositionMenuEvent (ChessSquare selection, int x, int y) } else boards[0][y][x] = selection; DrawPosition(TRUE, boards[0]); + ClearHighlights(); + fromX = fromY = -1; } break; } -- 1.7.0.4