mirror of
https://github.com/reactos/reactos.git
synced 2025-08-09 18:52:57 +00:00
[NtGDI] Fix one size region test.
See CORE-16246, the clip region may be the same size but more complex than the callers simple region.
This commit is contained in:
parent
06b77b8572
commit
02db01f3a6
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ IntGdiReleaseVisRgn(PDC pDC)
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Updating Vis Region Attribute the for DC Attributes.
|
// Updating Vis Region Attribute for DC Attributes.
|
||||||
// BTW: This system region has an user attribute for it.
|
// BTW: This system region has an user attribute for it.
|
||||||
//
|
//
|
||||||
VOID
|
VOID
|
||||||
|
@ -239,8 +239,8 @@ IntGdiExtSelectClipRect(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else // Have a box to build a region with.
|
else // Have a box to build a region with.
|
||||||
{
|
{ // See CORE-16246 : Needs to be a one box Clip Region.
|
||||||
if (dc->dclevel.prgnClip)
|
if ( dc->dclevel.prgnClip && (REGION_Complexity(dc->dclevel.prgnClip) == SIMPLEREGION) )
|
||||||
{
|
{
|
||||||
REGION_GetRgnBox(dc->dclevel.prgnClip, &rect);
|
REGION_GetRgnBox(dc->dclevel.prgnClip, &rect);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue