From: H.G. Muller Date: Sat, 13 Nov 2010 19:08:32 +0000 (+0100) Subject: Fix mouse-driver buglet X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=4d7556e74c252042c249057ed4d9eafbe070e97d;p=xboard.git Fix mouse-driver buglet The highlights were not cleared on moves that went vertically off board. --- 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);