Moved MsgWaitForMultipleObjects call on RDW_UPDATENOW out of the

RDW_Paint recursion.
This commit is contained in:
Alexandre Julliard 2001-10-08 22:32:05 +00:00
parent bc510d0960
commit 3949386d76
1 changed files with 5 additions and 2 deletions

View File

@ -712,8 +712,6 @@ static HRGN RDW_Paint( WND* wndPtr, HRGN hrgn, UINT flags, UINT ex )
if (flags & RDW_UPDATENOW) 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 */ if (wndPtr->hrgnUpdate) /* wm_painticon wparam is 1 */
SendMessageW( hWnd, (bIcon) ? WM_PAINTICON : WM_PAINT, bIcon, 0 ); 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 */ /* prepare an update region in window coordinates */
if( flags & RDW_FRAME ) if( flags & RDW_FRAME )