X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=board.c;h=48f075de4db5447a4d5d0697c9f38aefc18aae83;hb=0b487f0b8319a23d5334c63b035f692bcbae6221;hp=0941fc97e16c11a94d7e7f890e28b7c33e92e4a4;hpb=b737badf310f917fb0f7d5657fe7418aa4a8e401;p=xboard.git diff --git a/board.c b/board.c index 0941fc9..48f075d 100644 --- a/board.c +++ b/board.c @@ -817,6 +817,7 @@ DrawSquare (int row, int column, ChessSquare piece, int do_flash) snprintf(tString, 3, "%d", piece); align = 4; // holdings count in upper-left corner } + if(piece == DarkSquare) square_color = 2; if(square_color == 2 || appData.blindfold) piece = EmptySquare; if (do_flash && piece != EmptySquare && appData.flashCount > 0) { @@ -1029,7 +1030,7 @@ DrawPosition (int repaint, Board board) GraphExpose(currBoard, x - lineGap, y - lineGap, squareSize + 2*lineGap, squareSize + 2*lineGap); else GraphExpose(currBoard, x, y, squareSize, squareSize); - damage[nr][i][j] &= ~2; // remember damage by newly drawn error in '2' bit, to schedule it for erasure next draw + damage[nr][i][j] &= 2; // remember damage by newly drawn error in '2' bit, to schedule it for erasure next draw } }