X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=a0ce36e003b70adabd801e25da9e1e1147f83fab;hb=c0bcf53dc4abc3fc4001252c734b926765598837;hp=cb6ae94e5fabb5871074ef46075b1d40a9cfc0aa;hpb=d887d2f82c4e05350c23a7563cf6d5dd3efe04d9;p=xboard.git diff --git a/board.c b/board.c index cb6ae94..a0ce36e 100644 --- a/board.c +++ b/board.c @@ -194,7 +194,7 @@ SetPremoveHighlights (int fromX, int fromY, int toX, int toY) } if (pm2X != toX || pm2Y != toY) { if (pm2X >= 0 && pm2Y >= 0) { - damage[0][pm1Y][pm1X] |= 2; + damage[0][pm2Y][pm2X] |= 2; } } pm1X = fromX; @@ -749,7 +749,7 @@ DragPieceBegin (int x, int y, Boolean instantly) /* 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. */ - damage[0][boardY][boardX] = True; + damage[0][boardY][boardX] |= True; } else { anims[Player].dragActive = False; } @@ -770,7 +770,7 @@ DrawDragPiece () DrawOneSquare(anims[Player].startSquare.x, anims[Player].startSquare.y, EmptySquare, anims[Player].startColor, 0, NULL, NULL, 0); AnimationFrame(Player, &anims[Player].prevFrame, anims[Player].dragPiece); - damage[0][anims[Player].startBoardY][anims[Player].startBoardX] = TRUE; + damage[0][anims[Player].startBoardY][anims[Player].startBoardX] |= TRUE; } static void @@ -821,9 +821,11 @@ DrawSquare (int row, int column, ChessSquare piece, int do_flash) for (i=0; i