Fix erasing dots in seek graph
authorH.G. Muller <h.g.muller@hccnet.nl>
Fri, 5 Oct 2012 17:53:04 +0000 (19:53 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 21 Oct 2012 09:28:15 +0000 (11:28 +0200)
The cairo dots were just a little bit bigger than the old ones, so they
were not properly erased, but left a remnant.

xboard.c

index 3d05f69..7de8543 100644 (file)
--- 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);