projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix mouse-driver buglet
[xboard.git]
/
backend.c
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);