[NTGDI] Follow-up of #4137

Revert AddPenLinesBounds. Delete FIXME comments.
CORE-2527, CORE-8366
This commit is contained in:
Katayama Hirofumi MZ 2021-12-07 08:08:46 +09:00
parent 3d8d88eaf9
commit 4a17d4b0c1
2 changed files with 1 additions and 9 deletions

View file

@ -137,8 +137,6 @@ IntGdiPolygon(PDC dc,
PATH_UnlockPath(pPath);
PATH_Delete(dc->dclevel.hPath);
dc->dclevel.hPath = NULL;
/* FIXME: Boundary */
}
else
{
@ -695,8 +693,6 @@ IntRectangle(PDC dc,
PATH_UnlockPath(pPath);
PATH_Delete(dc->dclevel.hPath);
dc->dclevel.hPath = NULL;
/* FIXME: Boundary */
}
else
{

View file

@ -31,7 +31,7 @@ AddPenLinesBounds(PDC dc, int count, POINT *points)
bounds.left = bounds.top = INT_MAX;
bounds.right = bounds.bottom = INT_MIN;
if (IntIsEffectiveWidePen(pbrLine))
if (((pbrLine->ulPenStyle & PS_TYPE_MASK) & PS_GEOMETRIC) || pbrLine->lWidth > 1)
{
/* Windows uses some heuristics to estimate the distance from the point that will be painted */
lWidth = pbrLine->lWidth + 2;
@ -230,8 +230,6 @@ IntGdiLineTo(DC *dc,
PATH_UnlockPath(pPath);
PATH_Delete(dc->dclevel.hPath);
dc->dclevel.hPath = NULL;
/* FIXME: Boundary */
}
else
{
@ -398,8 +396,6 @@ IntGdiPolyline(DC *dc,
PATH_UnlockPath(pPath);
PATH_Delete(dc->dclevel.hPath);
dc->dclevel.hPath = NULL;
/* FIXME: Boundary */
}
else
{