mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
[NTGDI]
- Check for zero rectangles in REGION_bXformRgn. CORE-12204 svn path=/trunk/; revision=73881
This commit is contained in:
parent
1d7676d1e0
commit
f368db7eeb
1 changed files with 4 additions and 0 deletions
|
@ -2051,6 +2051,10 @@ REGION_bXformRgn(
|
||||||
RECT rect;
|
RECT rect;
|
||||||
BOOL bResult;
|
BOOL bResult;
|
||||||
|
|
||||||
|
/* Check for zero rectangles and return TRUE for translation only matrices */
|
||||||
|
if (prgn->rdh.nCount < 1)
|
||||||
|
return pmx->flAccel & XFORM_UNITY;
|
||||||
|
|
||||||
/* Check if this is a scaling only matrix (off-diagonal elements are 0 */
|
/* Check if this is a scaling only matrix (off-diagonal elements are 0 */
|
||||||
if (pmx->flAccel & XFORM_SCALE)
|
if (pmx->flAccel & XFORM_SCALE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue