From: H.G. Muller Date: Tue, 27 Oct 2009 03:34:04 +0000 (-0700) Subject: force full redraw in winboard X-Git-Tag: v4.4.1~18 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=845265f0dd9b60782b50d05779d69dbef6dcc294 force full redraw in winboard Full redraw is now always forced when highlightMovesWithArrow is on, rather than only when highlight info is available. (As in drop moves the latter is invalid, but we must still erase the arrow from the previous move.) --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 24fd967..9782495 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4214,7 +4214,7 @@ BOOL DrawPositionNeedsFullRepaint() but animation is fast enough that it's difficult to notice. */ if( animInfo.piece == EmptySquare ) { - if( (appData.highlightLastMove || appData.highlightDragging) && IsDrawArrowEnabled() && HasHighlightInfo() ) { + if( (appData.highlightLastMove || appData.highlightDragging) && IsDrawArrowEnabled() /*&& HasHighlightInfo()*/ ) { result = TRUE; } } @@ -4847,7 +4847,7 @@ PaintProc(HWND hwnd) * subtracted from x. */ int EventToSquare(x, limit) - int x; + int x, limit; { if (x <= 0) return -2;