- Fix Ellipse Path test results. See CORE-4990.

svn path=/trunk/; revision=72627
This commit is contained in:
James Tabor 2016-09-09 14:30:44 +00:00
parent 9434ff082b
commit cefd6ab0a1

View file

@ -214,8 +214,6 @@ NtGdiEllipse(
PBRUSH pFillBrushObj; PBRUSH pFillBrushObj;
BRUSH tmpFillBrushObj; BRUSH tmpFillBrushObj;
if ((Left == Right) || (Top == Bottom)) return TRUE;
dc = DC_LockDc(hDC); dc = DC_LockDc(hDC);
if (dc == NULL) if (dc == NULL)
{ {
@ -236,6 +234,15 @@ NtGdiEllipse(
return ret; return ret;
} }
////
//// Could this use PATH_CheckCorners ?
////
if ((Left == Right) || (Top == Bottom))
{
DC_UnlockDc(dc);
return TRUE;
}
if (Right < Left) if (Right < Left)
{ {
INT tmp = Right; Right = Left; Left = tmp; INT tmp = Right; Right = Left; Left = tmp;
@ -244,6 +251,7 @@ NtGdiEllipse(
{ {
INT tmp = Bottom; Bottom = Top; Top = tmp; INT tmp = Bottom; Bottom = Top; Top = tmp;
} }
////
pdcattr = dc->pdcattr; pdcattr = dc->pdcattr;