From c66d9af7e792aa418149092f978ec6103f135d2a Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Sun, 8 Nov 1998 13:01:41 +0000 Subject: [PATCH] ExtSelectClipRgn fix: RGN_DIFF did not work. --- objects/clipping.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/objects/clipping.c b/objects/clipping.c index 188c981a255..1e4373dcbaf 100644 --- a/objects/clipping.c +++ b/objects/clipping.c @@ -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 ); }