From 1a28d85dc3f8f062401002bebc8e8a59805cce9b Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 3 Sep 2017 13:14:25 +0000 Subject: Add new Fl_SVG_Image class to support scalable vector graphics images using the (modified) nanosvg software. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/pixmap_browser.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/pixmap_browser.cxx b/test/pixmap_browser.cxx index b1e122ab6..6de037e5e 100644 --- a/test/pixmap_browser.cxx +++ b/test/pixmap_browser.cxx @@ -16,6 +16,7 @@ // http://www.fltk.org/str.php // +#include #include #include #include @@ -75,7 +76,11 @@ void file_cb(const char *n) { void button_cb(Fl_Widget *,void *) { fl_file_chooser_callback(file_cb); - const char *fname = fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm}", name); + const char *fname = fl_file_chooser("Image file?","*.{bm,bmp,gif,jpg,pbm,pgm,png,ppm,xbm,xpm" +#ifdef FLTK_USE_NANOSVG + ",svg" +#endif + "}", name); puts(fname ? fname : "(null)"); fflush(stdout); fl_file_chooser_callback(0); } -- cgit v1.2.3