mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +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.
|
||||
//
|
||||
VOID
|
||||
|
@ -239,8 +239,8 @@ IntGdiExtSelectClipRect(
|
|||
}
|
||||
}
|
||||
else // Have a box to build a region with.
|
||||
{
|
||||
if (dc->dclevel.prgnClip)
|
||||
{ // See CORE-16246 : Needs to be a one box Clip Region.
|
||||
if ( dc->dclevel.prgnClip && (REGION_Complexity(dc->dclevel.prgnClip) == SIMPLEREGION) )
|
||||
{
|
||||
REGION_GetRgnBox(dc->dclevel.prgnClip, &rect);
|
||||
|
||||
|
|
Loading…
Reference in a new issue