- Fix order of calls in IntGdiPolygon. Check for PATH first.

svn path=/trunk/; revision=36650
This commit is contained in:
James Tabor 2008-10-04 23:34:04 +00:00
parent 1007f26da6
commit dc649db4d4

View file

@ -539,6 +539,11 @@ IntRectangle(PDC dc,
Dc_Attr = dc->pDc_Attr;
if(!Dc_Attr) Dc_Attr = &dc->Dc_Attr;
if ( PATH_IsPathOpen(dc->DcLevel) )
{
return PATH_Rectangle ( dc, LeftRect, TopRect, RightRect, BottomRect );
}
/* Do we rotate or shear? */
if (!(dc->DcLevel.mxWorldToDevice.flAccel & MX_SCALE))
{
@ -550,11 +555,6 @@ IntRectangle(PDC dc,
return IntGdiPolygon(dc, DestCoords, 4);
}
if ( PATH_IsPathOpen(dc->DcLevel) )
{
return PATH_Rectangle ( dc, LeftRect, TopRect, RightRect, BottomRect );
}
DestRect.left = LeftRect;
DestRect.right = RightRect;
DestRect.top = TopRect;