From: H.G. Muller Date: Fri, 5 Oct 2012 17:53:04 +0000 (+0200) Subject: Fix erasing dots in seek graph X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=1361f4143e3f97e179c1a45294b0f72b70804f72;p=xboard.git Fix erasing dots in seek graph The cairo dots were just a little bit bigger than the old ones, so they were not properly erased, but left a remnant. --- diff --git a/xboard.c b/xboard.c index 3d05f69..7de8543 100644 --- a/xboard.c +++ b/xboard.c @@ -3115,9 +3115,9 @@ void DrawSeekDot(int x, int y, int colorNr) colorNr &= 0x7F; if(square) - cairo_rectangle (cr, x-squareSize/9, y-squareSize/9, 2*squareSize/9, 2*squareSize/9); + cairo_rectangle (cr, x-squareSize/9, y-squareSize/9, 2*(squareSize/9), 2*(squareSize/9)); else - cairo_arc(cr, x, y, squareSize/8, 0.0, 2*M_PI); + cairo_arc(cr, x, y, squareSize/9, 0.0, 2*M_PI); SetPen(cr, 2, "#000000", 0); cairo_stroke_preserve(cr);