From 1d9f57bb298cf8366948a29fbd9ba4fd748de5e0 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 4 Aug 2021 11:22:19 +0200 Subject: [PATCH] gdi32: Use NtGdiSetMetaRgn for SetMetaRgn. Signed-off-by: Jacek Caban Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/gdi32/clipping.c | 4 ++-- dlls/gdi32/gdidc.c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/dlls/gdi32/clipping.c b/dlls/gdi32/clipping.c index 6ef49c674f2..92efa6a8926 100644 --- a/dlls/gdi32/clipping.c +++ b/dlls/gdi32/clipping.c @@ -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; RECT dummy; diff --git a/dlls/gdi32/gdidc.c b/dlls/gdi32/gdidc.c index a9eb7000b48..1b9057b33e0 100644 --- a/dlls/gdi32/gdidc.c +++ b/dlls/gdi32/gdidc.c @@ -1113,6 +1113,18 @@ INT WINAPI SelectClipRgn( HDC hdc, HRGN hrgn ) 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.@) */