From: H.G. Muller Date: Thu, 11 Oct 2012 17:13:24 +0000 (+0200) Subject: Fix animation with textures off X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=0366d754315af7f9d90904e6fb3cd73ed2c7549c Fix animation with textures off The blank square was not shifted to (0,0) when drawing the animation buffer. --- diff --git a/draw.c b/draw.c index 8a39aeb..b838c3b 100644 --- a/draw.c +++ b/draw.c @@ -605,7 +605,8 @@ BlankSquare (cairo_surface_t *dest, int x, int y, int color, ChessSquare piece, case 2: col = "#000000"; break; } SetPen(cr, 2.0, col, 0); - cairo_rectangle (cr, x, y, squareSize, squareSize); + cairo_rectangle (cr, fac*x, fac*y, squareSize, squareSize); + cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE); cairo_fill (cr); cairo_destroy (cr); }