From 0366d754315af7f9d90904e6fb3cd73ed2c7549c Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Thu, 11 Oct 2012 19:13:24 +0200 Subject: [PATCH] Fix animation with textures off The blank square was not shifted to (0,0) when drawing the animation buffer. --- draw.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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); } -- 1.7.0.4