gdi32: Use NtGdiArcInternal for Chord implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2b0cddbf0d
commit
1bf34b763e
|
@ -67,3 +67,16 @@ BOOL WINAPI ArcTo( HDC hdc, INT left, INT top, INT right, INT bottom,
|
||||||
return NtGdiArcInternal( NtGdiArcTo, hdc, left, top, right, bottom,
|
return NtGdiArcInternal( NtGdiArcTo, hdc, left, top, right, bottom,
|
||||||
xstart, ystart, xend, yend );
|
xstart, ystart, xend, yend );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* Chord (GDI32.@)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI Chord( HDC hdc, INT left, INT top, INT right, INT bottom,
|
||||||
|
INT xstart, INT ystart, INT xend, INT yend )
|
||||||
|
{
|
||||||
|
TRACE( "%p, (%d, %d)-(%d, %d), (%d, %d), (%d, %d)\n", hdc, left, top,
|
||||||
|
right, bottom, xstart, ystart, xend, yend );
|
||||||
|
|
||||||
|
return NtGdiArcInternal( NtGdiChord, hdc, left, top, right, bottom,
|
||||||
|
xstart, ystart, xend, yend );
|
||||||
|
}
|
||||||
|
|
|
@ -316,6 +316,12 @@ BOOL WINAPI NtGdiArcInternal( UINT type, HDC hdc, INT left, INT top, INT right,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case NtGdiChord:
|
||||||
|
physdev = GET_DC_PHYSDEV( dc, pChord );
|
||||||
|
ret = physdev->funcs->pChord( physdev, left, top, right, bottom,
|
||||||
|
xstart, ystart, xend, yend );
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
WARN( "invalid arc type %u\n", type );
|
WARN( "invalid arc type %u\n", type );
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
|
@ -348,28 +354,6 @@ BOOL WINAPI Pie( HDC hdc, INT left, INT top,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* Chord (GDI32.@)
|
|
||||||
*/
|
|
||||||
BOOL WINAPI Chord( HDC hdc, INT left, INT top,
|
|
||||||
INT right, INT bottom, INT xstart, INT ystart,
|
|
||||||
INT xend, INT yend )
|
|
||||||
{
|
|
||||||
BOOL ret;
|
|
||||||
PHYSDEV physdev;
|
|
||||||
DC * dc = get_dc_ptr( hdc );
|
|
||||||
|
|
||||||
TRACE( "%p, (%d, %d)-(%d, %d), (%d, %d), (%d, %d)\n", hdc, left, top, right, bottom, xstart, ystart, xend, yend );
|
|
||||||
|
|
||||||
if (!dc) return FALSE;
|
|
||||||
update_dc( dc );
|
|
||||||
physdev = GET_DC_PHYSDEV( dc, pChord );
|
|
||||||
ret = physdev->funcs->pChord( physdev, left, top, right, bottom, xstart, ystart, xend, yend );
|
|
||||||
release_dc_ptr( dc );
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* Ellipse (GDI32.@)
|
* Ellipse (GDI32.@)
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue