Bugfix: SetDCState did not reset clipping region to empty.

This commit is contained in:
Ulrich Weigand 1998-11-01 14:05:33 +00:00 committed by Alexandre Julliard
parent 314d968d52
commit 7119a6ea5e

View file

@ -660,10 +660,13 @@ void WINAPI SetDCState( HDC16 hdc, HDC16 hdcs )
{
if (!dc->w.hClipRgn) dc->w.hClipRgn = CreateRectRgn32( 0, 0, 0, 0 );
CombineRgn32( dc->w.hClipRgn, dcs->w.hClipRgn, 0, RGN_COPY );
CLIPPING_UpdateGCRegion( dc );
}
else
{
if (dc->w.hClipRgn) DeleteObject16( dc->w.hClipRgn );
dc->w.hClipRgn = 0;
}
CLIPPING_UpdateGCRegion( dc );
SelectObject32( hdc, dcs->w.hBitmap );
SelectObject32( hdc, dcs->w.hBrush );