From 3949386d76a933426622aed7950aa4de58d8c383 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 8 Oct 2001 22:32:05 +0000 Subject: [PATCH] Moved MsgWaitForMultipleObjects call on RDW_UPDATENOW out of the RDW_Paint recursion. --- windows/painting.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/windows/painting.c b/windows/painting.c index c3c9187ee86..3b8148584ae 100644 --- a/windows/painting.c +++ b/windows/painting.c @@ -712,8 +712,6 @@ static HRGN RDW_Paint( WND* wndPtr, HRGN hrgn, UINT flags, UINT ex ) if (flags & RDW_UPDATENOW) { - /* process pending events and messages before painting */ - MsgWaitForMultipleObjects( 0, NULL, FALSE, 0, QS_ALLINPUT ); if (wndPtr->hrgnUpdate) /* wm_painticon wparam is 1 */ SendMessageW( hWnd, (bIcon) ? WM_PAINTICON : WM_PAINT, bIcon, 0 ); } @@ -819,6 +817,11 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rectUpdate, } } + + /* process pending events and messages before painting */ + if (flags & RDW_UPDATENOW) + MsgWaitForMultipleObjects( 0, NULL, FALSE, 0, QS_ALLINPUT ); + /* prepare an update region in window coordinates */ if( flags & RDW_FRAME )