ExtSelectClipRgn fix: RGN_DIFF did not work.

This commit is contained in:
Rein Klazes 1998-11-08 13:01:41 +00:00 committed by Alexandre Julliard
parent a11ce32ad4
commit c66d9af7e7
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ INT32 WINAPI ExtSelectClipRgn( HDC32 hdc, HRGN32 hrgn, INT32 fnMode )
}
OffsetRgn32( dc->w.hClipRgn, -dc->w.DCOrgX, -dc->w.DCOrgY );
retval = CombineRgn32( dc->w.hClipRgn, hrgn, dc->w.hClipRgn, fnMode );
if(fnMode == RGN_COPY)
retval = CombineRgn32( dc->w.hClipRgn, hrgn, 0, fnMode );
else
retval = CombineRgn32( dc->w.hClipRgn, dc->w.hClipRgn, hrgn, fnMode);
OffsetRgn32( dc->w.hClipRgn, dc->w.DCOrgX, dc->w.DCOrgY );
}