projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fd4e9a
)
Fix highlights clearing when highlight last move off
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Tue, 10 May 2016 18:26:56 +0000
(20:26 +0200)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Tue, 10 May 2016 18:26:56 +0000
(20:26 +0200)
When moves are not highlighted, the selected piece still is. But
this highlight should be erased after the move.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
2a34146
..
d7788cb
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-7945,6
+7945,7
@@
LeftClick (ClickType clickType, int xPix, int yPix)
if(saveAnimate && !appData.animate && currentMove != oldMove && // drag-move was performed
Explode(boards[currentMove-1], fromX, fromY, toX, toY))
DrawPosition(TRUE, boards[currentMove]);
+ else DrawPosition(FALSE, NULL);
fromX = fromY = -1;
flashing = 0;
}