From 0c8683b53b368988cd8af18665ec5f105675c7ef Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 21 Dec 2011 22:09:02 +0100 Subject: [PATCH] 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. --- xboard.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) 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); } -- 1.7.0.4