From 845265f0dd9b60782b50d05779d69dbef6dcc294 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 26 Oct 2009 20:34:04 -0700 Subject: [PATCH] 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.) --- winboard/winboard.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.0.4