From 51de02c51f06bda67c40474d148e21d4717ba086 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Mon, 24 Jul 2023 00:09:16 -0600 Subject: svg: initial support for SVG images, using nanosvg --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 19a9711..ac0b743 100644 --- a/main.c +++ b/main.c @@ -33,6 +33,9 @@ #if defined(WBG_HAVE_WEBP) #include "webp.h" #endif +#if defined(WBG_HAVE_SVG) + #include "svg.h" +#endif /* Top-level globals */ static struct wl_display *display; @@ -411,6 +414,10 @@ main(int argc, const char *const *argv) #if defined(WBG_HAVE_WEBP) if (image == NULL) image = webp_load(fp, image_path); +#endif +#if defined(WBG_HAVE_SVG) + if (image == NULL) + image = svg_load(fp, image_path); #endif if (image == NULL) { fprintf(stderr, "error: %s: failed to load\n", image_path); -- cgit v1.2.3