diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-06-27 09:56:00 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-06-27 09:56:00 +0200 |
| commit | 26e6c3f930a052a1e729d160b0e8e5b6042b5018 (patch) | |
| tree | a8d9ced3f2c8eac6414394a9b2930a1757a1ee50 /src/fl_images_core.cxx | |
| parent | 93f19c3a2457f1c87f3c0781481f0bcc1602a514 (diff) | |
Add classes Fl_SVG_File_Surface and Fl_EPS_File_Surface to draw to SVG and EPS.
Test programs device and pixmap_browser use these new classes.
Class Fl_SVG_File_Surface can be optionally made non functional using the
--disable-svg configure option or turning off OPTION_USE_SVG in CMake.
Class Fl_EPS_File_Surface can be optionally made non functional using the
--disable-print configure option or turning off OPTION_PRINT_SUPPORT in CMake.
Diffstat (limited to 'src/fl_images_core.cxx')
| -rw-r--r-- | src/fl_images_core.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx index 624b6f4c3..3df7fcd27 100644 --- a/src/fl_images_core.cxx +++ b/src/fl_images_core.cxx @@ -91,7 +91,7 @@ fl_check_images(const char *name, // I - Filename return new Fl_JPEG_Image(name); #endif // HAVE_LIBJPEG -#ifdef FLTK_USE_NANOSVG +#ifdef FLTK_USE_SVG # if defined(HAVE_LIBZ) if (header[0] == 0x1f && header[1] == 0x8b) { // denotes gzip'ed data int fd = fl_open_ext(name, 1, 0); @@ -106,7 +106,7 @@ fl_check_images(const char *name, // I - Filename if ( (headerlen > 5 && memcmp(header, "<?xml", 5) == 0) || memcmp(header, "<svg", 4) == 0) return new Fl_SVG_Image(name); -#endif // FLTK_USE_NANOSVG +#endif // FLTK_USE_SVG return 0; } |
