Add option -jewelled to decide which King is a Zebra XB
[xboard.git] / draw.c
diff --git a/draw.c b/draw.c
index bbe4a79..1604a23 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -793,6 +793,7 @@ pngDrawPiece (cairo_surface_t *dest, ChessSquare piece, int square_color, int x,
        kind = 1;
        piece -= BlackPawn;
     }
+    if(piece == WhiteKing && kind == appData.jewelled) piece = WhiteZebra;
     if(appData.upsideDown && flipView) kind = 1 - kind; // swap white and black pieces
     BlankSquare(dest, x, y, square_color, piece, 1); // erase previous contents with background
     cr = cairo_create (dest);