From: H.G.Muller Date: Tue, 10 May 2016 17:42:09 +0000 (+0200) Subject: Fix redrawing of pieces dragged off board (bug #47888) X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=0fd4e9af50fa73c26252d2fe3921258c3029c19e Fix redrawing of pieces dragged off board (bug #47888) The board was not redrawn after a piece was dragged off board, leaving the piece 'invisibly' in its original position, and also leaving the target squares marked. --- diff --git a/backend.c b/backend.c index 6b206ea..2a34146 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)); }