From: H.G. Muller Date: Sun, 21 Oct 2012 12:49:45 +0000 (+0200) Subject: Fix variant-dependent pieces X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ed46e7344f667397536ed0d682daf1df972da735;p=xboard.git Fix variant-dependent pieces The code to select the actually used piece images from the available ones (from InitDrawingSizes) is now made into a subroutine, and also called after resizing the pieces. --- diff --git a/draw.c b/draw.c index 9e966d9..99203b9 100644 --- a/draw.c +++ b/draw.c @@ -166,7 +166,6 @@ void InitDrawingSizes (BoardSize boardSize, int flags) { // [HGM] resize is functional now, but for board format changes only (nr of ranks, files) int boardWidth, boardHeight; - int i; static int oldWidth, oldHeight; static VariantClass oldVariant; static int oldMono = -1, oldTwoBoards = 0;