Author: jimtabor
Date: Fri Sep 9 14:30:44 2016
New Revision: 72627
URL:
http://svn.reactos.org/svn/reactos?rev=72627&view=rev
Log:
[NtGDI]
- Fix Ellipse Path test results. See CORE-4990.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/fillshap.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/fillshap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/fillshap…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/fillshap.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/fillshap.c [iso-8859-1] Fri Sep 9 14:30:44 2016
@@ -214,8 +214,6 @@
PBRUSH pFillBrushObj;
BRUSH tmpFillBrushObj;
- if ((Left == Right) || (Top == Bottom)) return TRUE;
-
dc = DC_LockDc(hDC);
if (dc == NULL)
{
@@ -236,6 +234,15 @@
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 @@
{
INT tmp = Bottom; Bottom = Top; Top = tmp;
}
+ ////
pdcattr = dc->pdcattr;