From: H.G. Muller Date: Tue, 23 Oct 2012 13:02:56 +0000 (+0200) Subject: Fix re-rendering of svg on resize X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=1521e22cc981acc74bd7420d78c35d7e4cc87491 Fix re-rendering of svg on resize The previously prepared bitmaps were retained if we resized, rather then rendering the svg atthe new size. --- diff --git a/draw.c b/draw.c index 84fb6a1..9e966d9 100644 --- a/draw.c +++ b/draw.c @@ -282,9 +282,7 @@ ScaleOnePiece (int color, int piece) g_type_init (); - if(!svgPieces[color][piece]) { // try to freshly render cached svg pieces first, to supply the source bitmap - svgPieces[color][piece] = LoadSVG("", color, piece); // this fills pngPieceImages if we had cached svg with bitmap of wanted size - } + svgPieces[color][piece] = LoadSVG("", color, piece); // this fills pngPieceImages if we had cached svg with bitmap of wanted size if(!pngPieceImages[color][piece]) { // we don't have cached bitmap (implying we did not have cached svg) if(*appData.pieceDirectory) { // user specified piece directory