From: H.G. Muller Date: Wed, 21 Dec 2011 21:09:02 +0000 (+0100) Subject: Fix showTargetSquares in mono-mode XB X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=0c8683b53b368988cd8af18665ec5f105675c7ef;hp=d83fef11e9319aace3387c825bd8e5e574cf1b22;p=xboard.git Fix showTargetSquares in mono-mode XB Make the marker dots black (captures) and white, and draw a circle in the opposite color around them in monoMode. --- diff --git a/xboard.c b/xboard.c index e777ea9..9170e7f 100644 --- a/xboard.c +++ b/xboard.c @@ -4639,6 +4639,12 @@ void DrawSquare(row, column, piece, do_flash) } } if(!partnerUp && marker[row][column]) { + if(appData.monoMode) { + XFillArc(xDisplay, xBoardWindow, marker[row][column] == 2 ? darkSquareGC : lightSquareGC, + x + squareSize/4, y+squareSize/4, squareSize/2, squareSize/2, 0, 64*360); + XDrawArc(xDisplay, xBoardWindow, marker[row][column] == 2 ? lightSquareGC : darkSquareGC, + x + squareSize/4, y+squareSize/4, squareSize/2, squareSize/2, 0, 64*360); + } else XFillArc(xDisplay, xBoardWindow, marker[row][column] == 2 ? prelineGC : highlineGC, x + squareSize/4, y+squareSize/4, squareSize/2, squareSize/2, 0, 64*360); }