X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=8b266a28864a9a3eea851ac2a1a4da7a9f35dfdd;hb=fd96ae416d3a636f178a64f289c645942fa2d391;hp=b8be924af6f315fd5e4edb0cbe0418f558dd493c;hpb=67b3a0d7c465522feb67841c7374bf863df19357;p=xboard.git diff --git a/board.c b/board.c index b8be924..8b266a2 100644 --- a/board.c +++ b/board.c @@ -140,7 +140,7 @@ drawHighlight (int file, int rank, int type) (squareSize + lineGap); } - DrawBorder(x,y, type); + DrawBorder(x,y, type, lineGap & 1); // pass whether lineGap is odd } int hi1X = -1, hi1Y = -1, hi2X = -1, hi2Y = -1; @@ -582,6 +582,7 @@ AnimateAtomicCapture (Board board, int fromX, int fromY, int toX, int toY) FrameDelay(appData.animSpeed); } board[fromY][toY] = piece; + DrawGrid(); } /* Main control logic for deciding what to animate and how */ @@ -639,11 +640,11 @@ AnimateMove (Board board, int fromX, int fromY, int toX, int toY) if(Explode(board, fromX, fromY, toX, toY)) { // mark as damaged int i,j; for(i=0; i