If GetClipRgn() returns 1 (there is a current clipping region…) it never is selected as the current clipping region, and all the logic that depends on the value of the result of that selection (being SIMPLEREGION, COMPLEXREGION, etc) all evaluates to 1 -> which is NULLREGION. patch by Mark Boudreau.

git-svn-id: svn://10.0.0.236/trunk@176144 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%meer.net 2005-07-15 17:13:56 +00:00
parent 346b7be14c
commit 401d3fd120

View File

@ -172,8 +172,10 @@ MOZCE_SHUNT_API int mozce_ExtSelectClipRgn(HDC inDC, HRGN inRGN, int inMode)
RECT cRect;
GetClipBox(inDC,&cRect);
cRGN = CreateRectRgn(cRect.left,cRect.top,cRect.right,cRect.bottom);
result = SelectClipRgn(inDC,cRGN);
}
// now select the proper region as the current clipping region
result = SelectClipRgn(inDC,cRGN);
if (result == NULLREGION)
{