From 8adabc591738bd95064ff0fe85429f9261de4e1d Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Fri, 12 Jul 2019 17:13:56 +0800 Subject: [PATCH] Do not send MSG_NCPAINT when calling UpdateInvalidateRect --- src/gui/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/window.c b/src/gui/window.c index 839920f3..f4830013 100644 --- a/src/gui/window.c +++ b/src/gui/window.c @@ -3984,10 +3984,10 @@ void GUIAPI UpdateInvalidClient (HWND hWnd, BOOL fErase) { MG_CHECK (MG_IS_NORMAL_WINDOW(hWnd)); - if (fErase) + if (fErase) { SendAsyncMessage (hWnd, MSG_CHANGESIZE, 0, 0); - - SendAsyncMessage (hWnd, MSG_NCPAINT, 0, 0); + SendAsyncMessage (hWnd, MSG_NCPAINT, 0, 0); + } /* a new implementation only check the window and its children. */ {