From: H.G. Muller Date: Tue, 8 Oct 2013 17:54:23 +0000 (+0200) Subject: Fix re-appearing of board markers X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=ca959d6ae1c8b3b46ba50e7b9982b47037eae573;p=xboard.git Fix re-appearing of board markers The board markers could reappear after a machine move, after the already had been cleared at the end of the previous user move. This because HoverEvent() could restore them from the copy it keeps during hovering. Now clearing of the board markers also clearse baseMarker[][], which had to be made a global for that purpose. --- diff --git a/backend.c b/backend.c index fac9abd..6d2e706 100644 --- a/backend.c +++ b/backend.c @@ -7114,6 +7114,8 @@ MarkByFEN(char *fen) DrawPosition(TRUE, NULL); } +static char baseMarker[BOARD_RANKS][BOARD_FILES], baseLegal[BOARD_RANKS][BOARD_FILES]; + void Mark (Board board, int flags, ChessMove kind, int rf, int ff, int rt, int ft, VOIDSTAR closure) { @@ -7131,7 +7133,7 @@ MarkTargetSquares (int clear) { int x, y, sum=0; if(clear) { // no reason to ever suppress clearing - for(x=0; x