X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=b7f5aeb259252631e9850629f31464b5147681b2;hb=94f3427e1b21ef9242770d4889a67fd024b9c897;hp=c681eaed4407eee25ce299e0ce76a7750d44d1b1;hpb=a009a27e8c1e0bfa818f12fdcae675d0babc510a;p=xboard.git diff --git a/draw.c b/draw.c index c681eae..b7f5aeb 100644 --- a/draw.c +++ b/draw.c @@ -168,7 +168,7 @@ InitDrawingSizes (BoardSize boardSize, int flags) int boardWidth, boardHeight; static int oldWidth, oldHeight; static VariantClass oldVariant; - static int oldMono = -1, oldTwoBoards = 0; + static int oldTwoBoards = 0; if(!mainOptions[W_BOARD].handle) return; @@ -199,11 +199,9 @@ InitDrawingSizes (BoardSize boardSize, int flags) SelectPieces(gameInfo.variant); - oldMono = -10; // kludge to force recreation of animation masks oldVariant = gameInfo.variant; } CreateAnimVars(); - oldMono = appData.monoMode; } void @@ -232,8 +230,8 @@ CreatePNGBoard (char *s, int kind) } char *pngPieceNames[] = // must be in same order as internal piece encoding -{ "Pawn", "Knight", "Bishop", "Rook", "Queen", "Advisor", "Elephant", "Archbishop", "Marshall", "Gold", "Commoner", - "Canon", "Nightrider", "CrownedBishop", "CrownedRook", "Princess", "Chancellor", "Hawk", "Lance", "Cobra", "Unicorn", "King", +{ "Pawn", "Knight", "Bishop", "Rook", "Queen", "Advisor", "Elephant", "Archbishop", "Marshall", "Gold", "Commoner", + "Canon", "Nightrider", "CrownedBishop", "CrownedRook", "Princess", "Chancellor", "Hawk", "Lance", "Cobra", "Unicorn", "King", "GoldKnight", "GoldLance", "GoldPawn", "GoldSilver", NULL }; @@ -921,5 +919,3 @@ DrawEvalText (char *buf, int cbBuf, int y) /* free memory */ cairo_destroy (cr); } - -