X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=24195768e756ce03e69a3ac3fd28f62427b899f0;hb=588392561ee7fad1e1dc85a22954976292c46ff9;hp=a3edf7840ef4cda9c5e1a210127f5ea634883347;hpb=f1ba1f6ca489960efacf3e62484e9666e2a0cf79;p=xboard.git diff --git a/draw.c b/draw.c index a3edf78..2419576 100644 --- a/draw.c +++ b/draw.c @@ -803,7 +803,7 @@ InscribeKanji (ChessSquare piece, int x, int y) strncpy(buf, p, 10); for(q=buf; (*++q & 0xC0) == 0x80;); *q = NULLCHAR; - DrawText(buf, x, y, (n > WhiteLion ? -2 : -1) - black); + DrawText(buf, x, y, (PieceToChar(n) == '+' ? -2 : -1) - black); } void