X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=930b02c21b2e74e4e86f9988fc55f6716e0c31b9;hb=2987ec348b8b2cbf38ba9a6a0793652a6b238ae8;hp=12b8b655d6ab4ecfd17f72426a23f6de55a5fd04;hpb=fcdae93cdc0700e2680e15aaecdaf1eefa8940cd;p=xboard.git diff --git a/draw.c b/draw.c index 12b8b65..930b02c 100644 --- a/draw.c +++ b/draw.c @@ -117,6 +117,8 @@ int useTexture, textureW[2], textureH[2]; #define White(piece) ((int)(piece) < (int)BlackPawn) +char svgDir[MSG_SIZ] = SVGDIR; + char *crWhite = "#FFFFB0"; char *crBlack = "#AD5D3D"; @@ -316,7 +318,7 @@ ScaleOnePiece (int color, int piece) if(!pngPieceImages[color][piece]) { // we still did not manage to acquire a piece bitmap static int warned = 0; - if(!(svgPieces[color][piece] = LoadSVG(SVGDIR, color, piece, 0)) && !warned) { // try to fall back on installed svg + if(!(svgPieces[color][piece] = LoadSVG(svgDir, color, piece, 0)) && !warned) { // try to fall back on installed svg char *msg = _("No default pieces installed!\nSelect your own using '-pieceImageDirectory'."); printf("%s\n", msg); // give up DisplayError(msg, 0); @@ -768,7 +770,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)