X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=f736023563f75b99a459a571175f5e7cfb6be6a6;hb=7f784ffb4ac7e9a6a1ec40dc403d69d1bd96739b;hp=d879de7108642b7fc957bdc8cbf144174fa803b2;hpb=fc59a21875f42703ed57bc69f44a48bcee2f89ec;p=xboard.git diff --git a/backend.c b/backend.c index d879de7..f736023 100644 --- a/backend.c +++ b/backend.c @@ -7168,6 +7168,7 @@ UserMoveEvent (int fromX, int fromY, int toX, int toY, int promoChar) if(ExcludeOneMove(fromY, fromX, toY, toX, promoChar, '*')) // toggle ClearPremoveHighlights(); // was included else ClearHighlights(), SetPremoveHighlights(ff, rf, ft, rt); // exclusion indicated by premove highlights + DrawPosition(FALSE, NULL); return; } @@ -7911,7 +7912,7 @@ LeftClick (ClickType clickType, int xPix, int yPix) flashing = 1; // prevent recursive calling (by release of to-click) while flashing piece UserMoveEvent(fromX, fromY, toX, toY, promoChoice); if (!appData.highlightLastMove || gotPremove) ClearHighlights(); - if (gotPremove) SetPremoveHighlights(fromX, fromY, toX, toY); + if (gotPremove) SetPremoveHighlights(fromX, fromY, toX, toY), DrawPosition(FALSE, NULL); if(saveAnimate && !appData.animate && currentMove != oldMove && // drag-move was performed Explode(boards[currentMove-1], fromX, fromY, toX, toY)) DrawPosition(TRUE, boards[currentMove]);