mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
ExtSelectClipRgn() with RGN_COPY copies the wrong region.
This commit is contained in:
parent
99f1d37798
commit
8a91b4ad3e
@ -98,7 +98,7 @@ INT32 WINAPI ExtSelectClipRgn( HDC32 hdc, HRGN32 hrgn, INT32 fnMode )
|
||||
}
|
||||
|
||||
OffsetRgn32( dc->w.hClipRgn, -dc->w.DCOrgX, -dc->w.DCOrgY );
|
||||
retval = CombineRgn32( dc->w.hClipRgn, dc->w.hClipRgn, hrgn, fnMode );
|
||||
retval = CombineRgn32( dc->w.hClipRgn, hrgn, dc->w.hClipRgn, fnMode );
|
||||
OffsetRgn32( dc->w.hClipRgn, dc->w.DCOrgX, dc->w.DCOrgY );
|
||||
}
|
||||
|
||||
@ -465,6 +465,8 @@ INT16 WINAPI GetClipBox16( HDC16 hdc, LPRECT16 rect )
|
||||
ret = GetRgnBox16( dc->w.hGCClipRgn, rect );
|
||||
OffsetRect16( rect, -dc->w.DCOrgX, -dc->w.DCOrgY );
|
||||
DPtoLP16( hdc, (LPPOINT16)rect, 2 );
|
||||
TRACE(clipping, "%d,%d-%d,%d\n",
|
||||
rect->left,rect->top,rect->right,rect->bottom );
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user