projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
d9cf0f5
)
Fix mouse-driver buglet
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 13 Nov 2010 19:08:32 +0000 (20:08 +0100)
committer
Arun Persaud
<arun@nubati.net>
Sun, 14 Nov 2010 05:08:46 +0000 (21:08 -0800)
The highlights were not cleared on moves that went vertically off board.
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
b957c97
..
caaeabd
100644
(file)
--- a/
backend.c
+++ b/
backend.c
@@
-6518,7
+6518,7
@@
void LeftClick(ClickType clickType, int xPix, int yPix)
}
// off-board moves should not be highlighted
- if(x < 0 || x < 0) ClearHighlights();
+ if(x < 0 || y < 0) ClearHighlights();
if (HasPromotionChoice(fromX, fromY, toX, toY, &promoChoice)) {
SetHighlights(fromX, fromY, toX, toY);