Commit 6ce4ad23 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Use NtGdiFillPath for FillPath.

parent b47fb908
...@@ -1180,7 +1180,16 @@ BOOL EMFDC_GradientFill( DC_ATTR *dc_attr, TRIVERTEX *vert_array, ULONG nvert, ...@@ -1180,7 +1180,16 @@ BOOL EMFDC_GradientFill( DC_ATTR *dc_attr, TRIVERTEX *vert_array, ULONG nvert,
*/ */
BOOL CDECL EMFDRV_FillPath( PHYSDEV dev ) BOOL CDECL EMFDRV_FillPath( PHYSDEV dev )
{ {
return emfdrv_stroke_and_fill_path( dev, EMR_FILLPATH ); /* FIXME: update bound rect */
return TRUE;
}
/**********************************************************************
* EMFDC_FillPath
*/
BOOL EMFDC_FillPath( DC_ATTR *dc_attr )
{
return emfdrv_stroke_and_fill_path( dc_attr->emf, EMR_FILLPATH );
} }
/********************************************************************** /**********************************************************************
......
...@@ -147,6 +147,7 @@ extern BOOL EMFDC_ExtFloodFill( DC_ATTR *dc_attr, INT x, INT y, COLORREF color, ...@@ -147,6 +147,7 @@ extern BOOL EMFDC_ExtFloodFill( DC_ATTR *dc_attr, INT x, INT y, COLORREF color,
extern BOOL EMFDC_ExtSelectClipRgn( DC_ATTR *dc_attr, HRGN hrgn, INT mode ) DECLSPEC_HIDDEN; extern BOOL EMFDC_ExtSelectClipRgn( DC_ATTR *dc_attr, HRGN hrgn, INT mode ) DECLSPEC_HIDDEN;
extern BOOL EMFDC_ExtTextOut( DC_ATTR *dc_attr, INT x, INT y, UINT flags, const RECT *rect, extern BOOL EMFDC_ExtTextOut( DC_ATTR *dc_attr, INT x, INT y, UINT flags, const RECT *rect,
const WCHAR *str, UINT count, const INT *dx ) DECLSPEC_HIDDEN; const WCHAR *str, UINT count, const INT *dx ) DECLSPEC_HIDDEN;
extern BOOL EMFDC_FillPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
extern BOOL EMFDC_FillRgn( DC_ATTR *dc_attr, HRGN hrgn, HBRUSH hbrush ) DECLSPEC_HIDDEN; extern BOOL EMFDC_FillRgn( DC_ATTR *dc_attr, HRGN hrgn, HBRUSH hbrush ) DECLSPEC_HIDDEN;
extern BOOL EMFDC_FrameRgn( DC_ATTR *dc_attr, HRGN hrgn, HBRUSH hbrush, INT width, extern BOOL EMFDC_FrameRgn( DC_ATTR *dc_attr, HRGN hrgn, HBRUSH hbrush, INT width,
INT height ) DECLSPEC_HIDDEN; INT height ) DECLSPEC_HIDDEN;
......
...@@ -1520,6 +1520,18 @@ BOOL WINAPI CloseFigure( HDC hdc ) ...@@ -1520,6 +1520,18 @@ BOOL WINAPI CloseFigure( HDC hdc )
} }
/*********************************************************************** /***********************************************************************
* FillPath (GDI32.@)
*/
BOOL WINAPI FillPath( HDC hdc )
{
DC_ATTR *dc_attr;
if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
if (dc_attr->emf && !EMFDC_FillPath( dc_attr )) return FALSE;
return NtGdiFillPath( hdc );
}
/***********************************************************************
* IntersectClipRect (GDI32.@) * IntersectClipRect (GDI32.@)
*/ */
INT WINAPI IntersectClipRect( HDC hdc, INT left, INT top, INT right, INT bottom ) INT WINAPI IntersectClipRect( HDC hdc, INT left, INT top, INT right, INT bottom )
......
...@@ -696,12 +696,9 @@ HRGN WINAPI PathToRegion(HDC hdc) ...@@ -696,12 +696,9 @@ HRGN WINAPI PathToRegion(HDC hdc)
/*********************************************************************** /***********************************************************************
* FillPath (GDI32.@) * NtGdiFillPath (win32u.@)
*
* FIXME
* Check that SetLastError is being called correctly
*/ */
BOOL WINAPI FillPath(HDC hdc) BOOL WINAPI NtGdiFillPath( HDC hdc )
{ {
BOOL ret = FALSE; BOOL ret = FALSE;
DC *dc = get_dc_ptr( hdc ); DC *dc = get_dc_ptr( hdc );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment