From: H.G. Muller Date: Wed, 30 Jun 2010 08:46:43 +0000 (+0200) Subject: Allow font-based piece rendering in board sizes below petite X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=376a6b54e45239d67cb491320e4c965fe610d7a1;p=xboard.git Allow font-based piece rendering in board sizes below petite At least for variants that use unorthodox pieces, so that switching back to using bitmaps is not really an option anyway. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 06cf715..cbf38fa 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -2522,7 +2522,7 @@ DrawPieceOnDC(HDC hdc, ChessSquare piece, int color, int sqcolor, int x, int y, if (appData.blindfold) return; /* [AS] Use font-based pieces if needed */ - if( fontBitmapSquareSize >= 0 && squareSize > 32 ) { + if( fontBitmapSquareSize >= 0 && (squareSize > 32 || gameInfo.variant >= VariantShogi)) { /* Create piece bitmaps, or do nothing if piece set is up to date */ CreatePiecesFromFont();