Commit 98acc0fc authored by Alexandre Julliard's avatar Alexandre Julliard

RDW_FRAME should be RDW_NOFRAME when validating (spotted by Duane

Clark).
parent 2cbbcc18
...@@ -715,7 +715,8 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rectUpdate, ...@@ -715,7 +715,8 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rectUpdate,
/* prepare an update region in window coordinates */ /* prepare an update region in window coordinates */
if( flags & RDW_FRAME ) if (((flags & (RDW_INVALIDATE|RDW_FRAME)) == (RDW_INVALIDATE|RDW_FRAME)) ||
((flags & (RDW_VALIDATE|RDW_NOFRAME)) == (RDW_VALIDATE|RDW_NOFRAME)))
r = wndPtr->rectWindow; r = wndPtr->rectWindow;
else else
r = wndPtr->rectClient; r = wndPtr->rectClient;
...@@ -779,9 +780,9 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rectUpdate, ...@@ -779,9 +780,9 @@ BOOL WINAPI RedrawWindow( HWND hwnd, const RECT *rectUpdate,
OffsetRect( &r2, pt.x, pt.y ); OffsetRect( &r2, pt.x, pt.y );
hRgn = CreateRectRgnIndirect( &r2 ); hRgn = CreateRectRgnIndirect( &r2 );
} }
else /* entire window or client depending on RDW_FRAME */ else /* entire window or client depending on RDW_NOFRAME */
{ {
if( flags & RDW_FRAME ) if( flags & RDW_NOFRAME )
hRgn = 1; hRgn = 1;
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment