Commit b048e4e0 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

gdi32: Use NtGdiStrokePath for StrokePath.

parent dc19c31d
......@@ -1214,5 +1214,14 @@ BOOL EMFDC_StrokeAndFillPath( DC_ATTR *dc_attr )
*/
BOOL CDECL EMFDRV_StrokePath( PHYSDEV dev )
{
return emfdrv_stroke_and_fill_path( dev, EMR_STROKEPATH );
/* FIXME: update bound rect */
return TRUE;
}
/**********************************************************************
* EMFDC_StrokePath
*/
BOOL EMFDC_StrokePath( DC_ATTR *dc_attr )
{
return emfdrv_stroke_and_fill_path( dc_attr->emf, EMR_STROKEPATH );
}
......@@ -218,5 +218,6 @@ extern BOOL EMFDC_StretchDIBits( DC_ATTR *dc_attr, INT x_dst, INT y_dst, INT wid
INT height_src, const void *bits, const BITMAPINFO *info,
UINT coloruse, DWORD rop ) DECLSPEC_HIDDEN;
extern BOOL EMFDC_StrokeAndFillPath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
extern BOOL EMFDC_StrokePath( DC_ATTR *dc_attr ) DECLSPEC_HIDDEN;
#endif /* __WINE_GDI_PRIVATE_H */
......@@ -1543,6 +1543,18 @@ BOOL WINAPI StrokeAndFillPath( HDC hdc )
return NtGdiStrokeAndFillPath( hdc );
}
/*******************************************************************
* StrokePath (GDI32.@)
*/
BOOL WINAPI StrokePath( HDC hdc )
{
DC_ATTR *dc_attr;
if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
if (dc_attr->emf && !EMFDC_StrokePath( dc_attr )) return FALSE;
return NtGdiStrokePath( hdc );
}
/***********************************************************************
* FlattenPath (GDI32.@)
*/
......
......@@ -1919,11 +1919,9 @@ BOOL WINAPI NtGdiStrokeAndFillPath( HDC hdc )
/*******************************************************************
* StrokePath [GDI32.@]
*
*
* NtGdiStrokePath (win32u.@)
*/
BOOL WINAPI StrokePath(HDC hdc)
BOOL WINAPI NtGdiStrokePath( HDC hdc )
{
BOOL ret = FALSE;
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