mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
EngLineTo: if pco == NULL use a private clip object, initialized with bounds rect
svn path=/trunk/; revision=33743
This commit is contained in:
parent
7c07a3d2c3
commit
ed5eae8cb6
1 changed files with 15 additions and 0 deletions
|
@ -348,6 +348,7 @@ EngLineTo(SURFOBJ *DestObj,
|
||||||
INTENG_ENTER_LEAVE EnterLeave;
|
INTENG_ENTER_LEAVE EnterLeave;
|
||||||
RECT_ENUM RectEnum;
|
RECT_ENUM RectEnum;
|
||||||
BOOL EnumMore;
|
BOOL EnumMore;
|
||||||
|
CLIPOBJ *pcoPriv = NULL;
|
||||||
|
|
||||||
if (x1 < x2)
|
if (x1 < x2)
|
||||||
{
|
{
|
||||||
|
@ -375,6 +376,15 @@ EngLineTo(SURFOBJ *DestObj,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Clip)
|
||||||
|
{
|
||||||
|
Clip = pcoPriv = IntEngCreateClipRegion(0, 0, RectBounds);
|
||||||
|
if (!Clip)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
x1 += Translate.x;
|
x1 += Translate.x;
|
||||||
x2 += Translate.x;
|
x2 += Translate.x;
|
||||||
y1 += Translate.y;
|
y1 += Translate.y;
|
||||||
|
@ -487,6 +497,11 @@ EngLineTo(SURFOBJ *DestObj,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pcoPriv)
|
||||||
|
{
|
||||||
|
IntEngDeleteClipRegion(pcoPriv);
|
||||||
|
}
|
||||||
|
|
||||||
return IntEngLeave(&EnterLeave);
|
return IntEngLeave(&EnterLeave);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue