X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=8b266a28864a9a3eea851ac2a1a4da7a9f35dfdd;hb=5234409d87b0b67a528acb623af316d8462899de;hp=e0f0649c1d7414a32b88dbd35c3874f46ca988e1;hpb=4ca3b41e1ccb5ebfade606202c2084f8e9328978;p=xboard.git diff --git a/board.c b/board.c index e0f0649..8b266a2 100644 --- a/board.c +++ b/board.c @@ -98,6 +98,7 @@ extern char *getenv(); #include "backend.h" #include "moves.h" #include "board.h" +#include "draw.h" #ifdef __EMX__ @@ -139,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; @@ -581,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 */ @@ -638,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 0) { for (i=0; i