diff options
| author | Manolo Gouy <Manolo> | 2017-09-03 13:14:25 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-09-03 13:14:25 +0000 |
| commit | 1a28d85dc3f8f062401002bebc8e8a59805cce9b (patch) | |
| tree | 4fd0412732046d526e44476ea22eab343c36673c /test | |
| parent | da31ff4569a252e314ab91b3ea9cc11aafec2a24 (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/pixmap_browser.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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 <config.h> #include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/Fl_Double_Window.H> @@ -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); } |
