From a891a7c3889eb9959ae62c4fb255ec06e1aa1f9d Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Thu, 21 Apr 2016 13:51:08 +0200 Subject: [PATCH] Allow skipping to secondary series in -inscriptions string A slash in the UTF8 string of the -inscriptions option now will start the inscriptions of the pieces from the secondary series. This allows writing -incription values that will remain valid wehen new pieces would be added to the end of the primary series. --- draw.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/draw.c b/draw.c index 1604a23..874fcd8 100644 --- a/draw.c +++ b/draw.c @@ -903,6 +903,7 @@ InscribeKanji (cairo_surface_t *canvas, ChessSquare piece, int x, int y) p = appData.inscriptions; n = piece; while(piece > WhitePawn) { + if(*p == '/') p++, piece = n - WhitePBishop; // secondary series if(*p++ == NULLCHAR) { if(n != WhiteKing) return; p = q; -- 1.7.0.4