From 40c740ae01e3c9694449134e68b7a7bd077fb172 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Mon, 21 Mar 2016 11:14:54 +0100 Subject: [PATCH] Improve board drawing The erasing of target-square markers could lead to flashing of the moved piece. It was also ugly when the piece was slipped under a marker. The actual display of the marker change on erasing can now be deferred to a later position draw, and this is used when erasing after a drag-drop move to do it after the move was accepted (so the piece would not be flashed on the from-square, but still displayed without marker on it after the drop). For click-click the erasure is shown before animation starts. A problem with showing deselection when target-square marking was off is now also fixed. --- backend.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/backend.c b/backend.c index f538477..5a1780d 100644 --- a/backend.c +++ b/backend.c @@ -7431,7 +7431,7 @@ MarkTargetSquares (int clear) if(clear) { // no reason to ever suppress clearing for(x=0; x