X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=d7788cbad0703cc545c9505d2c148289e1b33aa4;hb=740a7dd895041cb69873729142d2dcfdb6f03d08;hp=6b206ead9e1fa924b081a4c591f207ed2cddb6d0;hpb=dbc02c447b13a47e14bb9d4900ad38a311a25f20;p=xboard.git diff --git a/backend.c b/backend.c index 6b206ea..d7788cb 100644 --- a/backend.c +++ b/backend.c @@ -7898,8 +7898,10 @@ LeftClick (ClickType clickType, int xPix, int yPix) } // off-board moves should not be highlighted - if(x < 0 || y < 0) ClearHighlights(); - else ReportClick("put", x, y); + if(x < 0 || y < 0) { + ClearHighlights(); + DrawPosition(FALSE, NULL); + } else ReportClick("put", x, y); if(gatingPiece != EmptySquare && gameInfo.variant == VariantSChess) promoChoice = ToLower(PieceToChar(gatingPiece)); } @@ -7943,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; }