mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:25:39 +00:00
Bugfix: SetDCState did not reset clipping region to empty.
This commit is contained in:
parent
314d968d52
commit
7119a6ea5e
|
@ -660,10 +660,13 @@ void WINAPI SetDCState( HDC16 hdc, HDC16 hdcs )
|
||||||
{
|
{
|
||||||
if (!dc->w.hClipRgn) dc->w.hClipRgn = CreateRectRgn32( 0, 0, 0, 0 );
|
if (!dc->w.hClipRgn) dc->w.hClipRgn = CreateRectRgn32( 0, 0, 0, 0 );
|
||||||
CombineRgn32( dc->w.hClipRgn, dcs->w.hClipRgn, 0, RGN_COPY );
|
CombineRgn32( dc->w.hClipRgn, dcs->w.hClipRgn, 0, RGN_COPY );
|
||||||
CLIPPING_UpdateGCRegion( dc );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (dc->w.hClipRgn) DeleteObject16( dc->w.hClipRgn );
|
||||||
dc->w.hClipRgn = 0;
|
dc->w.hClipRgn = 0;
|
||||||
|
}
|
||||||
|
CLIPPING_UpdateGCRegion( dc );
|
||||||
|
|
||||||
SelectObject32( hdc, dcs->w.hBitmap );
|
SelectObject32( hdc, dcs->w.hBitmap );
|
||||||
SelectObject32( hdc, dcs->w.hBrush );
|
SelectObject32( hdc, dcs->w.hBrush );
|
||||||
|
|
Loading…
Reference in a new issue