]> O.S.I.I.S - jp/vkvg.git/commitdiff
update vkvg-svg
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 7 Jan 2022 11:56:05 +0000 (12:56 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Fri, 7 Jan 2022 11:56:05 +0000 (12:56 +0100)
external/vkvg-svg
src/nsvg/vkvg_nsvg.c

index fa2c0c9d04234316140a1cef2f126a821d061466..98e6716f64b6830fe816f92bf7881ebd1762734e 160000 (submodule)
@@ -1 +1 @@
-Subproject commit fa2c0c9d04234316140a1cef2f126a821d061466
+Subproject commit 98e6716f64b6830fe816f92bf7881ebd1762734e
index 70d238690bce9728f41e3ebf570351ce82abac58..c638fac452a723d749cffb4633eacfafd216ab11 100644 (file)
@@ -25,8 +25,7 @@
 
 #define NANOSVG_IMPLEMENTATION // Expands implementation
 #include "nanosvg.h"
-
-#include "vkvg-nsvg.h"
+#include "vkvg-svg.h"
 
 void _svg_set_color (VkvgContext ctx, uint32_t c, float alpha) {
        float a = (c >> 24 & 255) / 255.f;
@@ -63,10 +62,10 @@ VkvgSurface _svg_load (VkvgDevice dev, NSVGimage* svg) {
        return surf;
 }
 
-VkvgSurface vkvg_surface_create_from_svg (VkvgDevice dev, const char* filePath) {
+VkvgSurface vkvg_surface_create_from_svg (VkvgDevice dev, uint32_t width, uint32_t height, const char* filePath) {
        return _svg_load(dev, nsvgParseFromFile(filePath, "px", (float)dev->hdpi));
 }
-VkvgSurface vkvg_surface_create_from_svg_fragment (VkvgDevice dev, char* fragment) {
+VkvgSurface vkvg_surface_create_from_svg_fragment (VkvgDevice dev, uint32_t width, uint32_t height, char* fragment) {
        return _svg_load(dev, nsvgParse(fragment, "px", (float)dev->hdpi));
 }
 NSVGimage* nsvg_load_file (VkvgDevice dev, const char* filePath) {