From 1521e22cc981acc74bd7420d78c35d7e4cc87491 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Tue, 23 Oct 2012 15:02:56 +0200 Subject: [PATCH] Fix re-rendering of svg on resize The previously prepared bitmaps were retained if we resized, rather then rendering the svg atthe new size. --- draw.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) 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 -- 1.7.0.4