X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=2b14ef98608f780079c9361e3e0ec88d7b9cbe39;hb=d5af04589d5c9195e0e3488ab9531757c3d86249;hp=94c59d17021cb5853bb1763d13235b79ce3a7370;hpb=9561beba89f0b69b4722ad810619271b35685878;p=xboard.git diff --git a/xboard.c b/xboard.c index 94c59d1..2b14ef9 100644 --- a/xboard.c +++ b/xboard.c @@ -9143,6 +9143,11 @@ DragPieceBegin(x, y) /* Mark this square as needing to be redrawn. Note that we don't remove the piece though, since logically (ie as seen by opponent) the move hasn't been made yet. */ + if(boardX == BOARD_RGHT+1 && PieceForSquare(boardX-1, boardY) > 1 || + boardX == BOARD_LEFT-2 && PieceForSquare(boardX+1, boardY) > 1) + XCopyArea(xDisplay, xBoardWindow, player.saveBuf, player.blitGC, + corner.x, corner.y, squareSize, squareSize, + 0, 0); // [HGM] xh: unstack in stead of grab damage[boardY][boardX] = True; } else { player.dragActive = False;