diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -36,6 +36,9 @@ #if defined(WBG_HAVE_SVG) #include "svg.h" #endif +#if defined(WBG_HAVE_JXL) + #include "jxl.h" +#endif /* Top-level globals */ static struct wl_display *display; @@ -419,6 +422,10 @@ main(int argc, const char *const *argv) if (image == NULL) image = svg_load(fp, image_path); #endif +#if defined(WBG_HAVE_JXL) + if (image == NULL) + image = jxl_load(fp, image_path); +#endif if (image == NULL) { LOG_ERR("%s: failed to load", image_path); fclose(fp); |