mirror of
https://github.com/reactos/reactos.git
synced 2025-05-10 12:23:25 +00:00
[NtGDI]
- Fix Ellipse Path test results. See CORE-4990. svn path=/trunk/; revision=72627
This commit is contained in:
parent
9434ff082b
commit
cefd6ab0a1
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue