gdi32: Use NtGdiSetMetaRgn for SetMetaRgn.

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-04 11:22:19 +02:00 committed by Alexandre Julliard
parent 24a22a51ff
commit 1d9f57bb29
2 changed files with 14 additions and 2 deletions

View File

@ -526,9 +526,9 @@ INT WINAPI GetRandomRgn(HDC hDC, HRGN hRgn, INT iCode)
/*********************************************************************** /***********************************************************************
* SetMetaRgn (GDI32.@) * NtGdiSetMetaRgn (win32u.@)
*/ */
INT WINAPI SetMetaRgn( HDC hdc ) INT WINAPI NtGdiSetMetaRgn( HDC hdc )
{ {
INT ret; INT ret;
RECT dummy; RECT dummy;

View File

@ -1113,6 +1113,18 @@ INT WINAPI SelectClipRgn( HDC hdc, HRGN hrgn )
return ExtSelectClipRgn( hdc, hrgn, RGN_COPY ); return ExtSelectClipRgn( hdc, hrgn, RGN_COPY );
} }
/***********************************************************************
* SetMetaRgn (GDI32.@)
*/
INT WINAPI SetMetaRgn( HDC hdc )
{
DC_ATTR *dc_attr;
if (!(dc_attr = get_dc_attr( hdc ))) return FALSE;
if (dc_attr->emf) FIXME( "EMFs are not yet supported\n" );
return NtGdiSetMetaRgn( hdc );
}
/*********************************************************************** /***********************************************************************
* GdiSetPixelFormat (GDI32.@) * GdiSetPixelFormat (GDI32.@)
*/ */