From 4d7556e74c252042c249057ed4d9eafbe070e97d Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 13 Nov 2010 20:08:32 +0100 Subject: [PATCH] Fix mouse-driver buglet The highlights were not cleared on moves that went vertically off board. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index b957c97..caaeabd 100644 --- 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); -- 1.7.0.4