From cf49cf2b645dcc4bb3c733983272bbfd08ff3aa2 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Thu, 3 Nov 2022 16:11:06 +0800 Subject: [PATCH] do not call UpdateInvalidClient in ScrollWindow: this may break update logical of control --- src/gui/window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/window.c b/src/gui/window.c index 1c5f09b1..14bc96a9 100644 --- a/src/gui/window.c +++ b/src/gui/window.c @@ -3245,7 +3245,7 @@ int GUIAPI ScrollWindowEx (HWND hWnd, int dx, int dy, rcScroll = rcClient; /* - * BUGFIX: if we scrolled all area, the all area must + * BUGFIX: if we scrolled all area, the whole area must * be set as invalidate (dongjunjie 2010/7/28) */ if ((dx != 0 && abs(dx) >= RECTW(rcScroll)) || @@ -3281,7 +3281,6 @@ int GUIAPI ScrollWindowEx (HWND hWnd, int dx, int dy, } SendMessage (HWND_DESKTOP, MSG_SCROLLMAINWIN, (WPARAM)hWnd, (LPARAM)(&swi)); - UpdateInvalidClient(hWnd, FALSE); /* show caret */ if (fCaret) ShowCaretEx (hWnd, FALSE);