From cefd6ab0a117a32c2df038bd8549eef5adece61e Mon Sep 17 00:00:00 2001 From: James Tabor Date: Fri, 9 Sep 2016 14:30:44 +0000 Subject: [PATCH] [NtGDI] - Fix Ellipse Path test results. See CORE-4990. svn path=/trunk/; revision=72627 --- reactos/win32ss/gdi/ntgdi/fillshap.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/reactos/win32ss/gdi/ntgdi/fillshap.c b/reactos/win32ss/gdi/ntgdi/fillshap.c index d6fbf24d47d..946ab9991a9 100644 --- a/reactos/win32ss/gdi/ntgdi/fillshap.c +++ b/reactos/win32ss/gdi/ntgdi/fillshap.c @@ -214,8 +214,6 @@ NtGdiEllipse( PBRUSH pFillBrushObj; BRUSH tmpFillBrushObj; - if ((Left == Right) || (Top == Bottom)) return TRUE; - dc = DC_LockDc(hDC); if (dc == NULL) { @@ -236,6 +234,15 @@ NtGdiEllipse( return ret; } + //// + //// Could this use PATH_CheckCorners ? + //// + if ((Left == Right) || (Top == Bottom)) + { + DC_UnlockDc(dc); + return TRUE; + } + if (Right < Left) { INT tmp = Right; Right = Left; Left = tmp; @@ -244,6 +251,7 @@ NtGdiEllipse( { INT tmp = Bottom; Bottom = Top; Top = tmp; } + //// pdcattr = dc->pdcattr;