X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=6abbabbe758595549b3b06087cc03814d0e184ef;hb=06b933aec31c7eafe287731d4ec8e3ba9de6ec81;hp=b8be924af6f315fd5e4edb0cbe0418f558dd493c;hpb=67b3a0d7c465522feb67841c7374bf863df19357;p=xboard.git diff --git a/board.c b/board.c index b8be924..6abbabb 100644 --- a/board.c +++ b/board.c @@ -96,6 +96,7 @@ extern char *getenv(); #include "common.h" #include "frontend.h" #include "backend.h" +#include "xboard2.h" #include "moves.h" #include "board.h" #include "draw.h" @@ -140,7 +141,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 +583,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 +641,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