]> O.S.I.I.S - jp/crow.git/commitdiff
update nsvg iface with subPath parameter, but nsvg doesn't handle g elements
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 2 May 2019 00:39:29 +0000 (02:39 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 2 May 2019 00:39:29 +0000 (02:39 +0200)
Crow/src/vkvg/Context.cs
Crow/src/vkvg/NativeMethods.cs

index b3cea1528ba82c13f0a3f898c02fce1ae5eaf8f6..9566caff00662d2b95a9150b95752c73fcaf4e44 100644 (file)
@@ -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)
                {
index dd1757e9c376fc90b864a12178964f802180f29c..4f137ccdc752891ca5f31b40cec9c13fb4fc2725 100644 (file)
@@ -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
        }
 }