Fix piece inscriptions
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 1 Apr 2014 10:00:14 +0000 (12:00 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Tue, 1 Apr 2014 10:00:14 +0000 (12:00 +0200)
draw.c

diff --git a/draw.c b/draw.c
index 12b8b65..fb66db2 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -768,7 +768,7 @@ DrawOneSquare (int x, int y, ChessSquare piece, int square_color, int marker, ch
        BlankSquare(csBoardWindow, x, y, square_color, piece, 1);
     } else {
        pngDrawPiece(csBoardWindow, piece, square_color, x, y);
-        InscribeKanji(piece, x, y);
+        if(appData.inscriptions[0]) InscribeKanji(piece, x, y);
     }
 
     if(align) { // square carries inscription (coord or piece count)