Skip to content

Commit cefd6ab

Browse files
committed
[NtGDI]
- Fix Ellipse Path test results. See CORE-4990. svn path=/trunk/; revision=72627
1 parent 9434ff0 commit cefd6ab

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

reactos/win32ss/gdi/ntgdi/fillshap.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ NtGdiEllipse(
214214
PBRUSH pFillBrushObj;
215215
BRUSH tmpFillBrushObj;
216216

217-
if ((Left == Right) || (Top == Bottom)) return TRUE;
218-
219217
dc = DC_LockDc(hDC);
220218
if (dc == NULL)
221219
{
@@ -236,6 +234,15 @@ NtGdiEllipse(
236234
return ret;
237235
}
238236

237+
////
238+
//// Could this use PATH_CheckCorners ?
239+
////
240+
if ((Left == Right) || (Top == Bottom))
241+
{
242+
DC_UnlockDc(dc);
243+
return TRUE;
244+
}
245+
239246
if (Right < Left)
240247
{
241248
INT tmp = Right; Right = Left; Left = tmp;
@@ -244,6 +251,7 @@ NtGdiEllipse(
244251
{
245252
INT tmp = Bottom; Bottom = Top; Top = tmp;
246253
}
254+
////
247255

248256
pdcattr = dc->pdcattr;
249257

0 commit comments

Comments
 (0)