From 0fd4e9af50fa73c26252d2fe3921258c3029c19e Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 10 May 2016 19:42:09 +0200 Subject: [PATCH] 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. --- backend.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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)); } -- 1.7.0.4