mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 04:52:54 +00:00
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.
This commit is contained in:
parent
461bb16938
commit
ece258b392
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user