mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
RDW_FRAME should be RDW_NOFRAME when validating (spotted by Duane
Clark).
This commit is contained in:
parent
2cbbcc1875
commit
98acc0fcbf
1 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||||
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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue