mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 16:09:42 +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;
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue