From 152bc103da8a40d737ecf4e9a824ab5d5dde97cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 2 May 2019 02:39:29 +0200 Subject: [PATCH] update nsvg iface with subPath parameter, but nsvg doesn't handle g elements --- Crow/src/vkvg/Context.cs | 4 ++-- Crow/src/vkvg/NativeMethods.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Crow/src/vkvg/Context.cs b/Crow/src/vkvg/Context.cs index b3cea152..9566caff 100644 --- a/Crow/src/vkvg/Context.cs +++ b/Crow/src/vkvg/Context.cs @@ -248,8 +248,8 @@ namespace vkvg public void SetSourceSurface (Surface surf, float x = 0f, float y = 0f) { NativeMethods.vkvg_set_source_surface (handle, surf.Handle, x, y); } - public void RenderSvg (IntPtr nsvgImage) { - NativeMethods.vkvg_render_svg (handle, nsvgImage); + public void RenderSvg (IntPtr nsvgImage, string subId = null) { + NativeMethods.vkvg_render_svg (handle, nsvgImage, subId); } internal static byte[] TerminateUtf8(string s) { diff --git a/Crow/src/vkvg/NativeMethods.cs b/Crow/src/vkvg/NativeMethods.cs index dd1757e9..4f137ccd 100644 --- a/Crow/src/vkvg/NativeMethods.cs +++ b/Crow/src/vkvg/NativeMethods.cs @@ -280,7 +280,7 @@ namespace vkvg [DllImport (libvkvg, CallingConvention = CallingConvention.Cdecl)] internal static extern void nsvg_get_size (IntPtr nsvgImage, out int width, out int height); [DllImport (libvkvg, CallingConvention = CallingConvention.Cdecl)] - internal static extern void vkvg_render_svg (IntPtr ctx, IntPtr nsvgImage); + internal static extern void vkvg_render_svg (IntPtr ctx, IntPtr nsvgImage, string subId); #endregion } } -- 2.47.3