From: H.G.Muller Date: Mon, 25 Apr 2016 16:31:22 +0000 (+0200) Subject: Fix dragged piece during promotion popup X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=57ee5429b201802b3890c3c775968f41af8353aa Fix dragged piece during promotion popup When dragging to a promotion square, the piece would keep 'hanging' in the release position while the promotion popup was shown. (This usually covered it, but not always.) As after a choice is made the move will be animated, it was more logical to put it back on the from-square. --- diff --git a/backend.c b/backend.c index 55cb253..4f6262a 100644 --- a/backend.c +++ b/backend.c @@ -7915,6 +7915,7 @@ LeftClick (ClickType clickType, int xPix, int yPix) DisplayMessage("Click in holdings to choose piece", ""); return; } + DrawPosition(FALSE, NULL); // shows piece on from-square during promo popup PromotionPopUp(promoChoice); } else { int oldMove = currentMove;