gdi32: Use NtGdiStrokePath for StrokePath.

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:
Jacek Caban 2021-08-19 10:23:24 +02:00 committed by Alexandre Julliard
parent dc19c31d8b
commit b048e4e0df
4 changed files with 25 additions and 5 deletions

View file

@ -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 );
}

View file

@ -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 */

View file

@ -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.@)
*/

View file

@ -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 );