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