summaryrefslogtreecommitdiff
path: root/src/fl_images_core.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-10-13 07:17:01 +0000
committerManolo Gouy <Manolo>2017-10-13 07:17:01 +0000
commitdb83933f585d156db2ae35d9c5649bb21b4555af (patch)
tree1d47aeaaca39a6093be40d930ddd8cb4941b9b92 /src/fl_images_core.cxx
parentb5027d4f29e057f514a333ec188dc5b86a1cc8e8 (diff)
Remove the Fl_SVG_Image::fl_gzopen() member function that is less useful with the new fl_open_ext() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12491 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_images_core.cxx')
-rw-r--r--src/fl_images_core.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fl_images_core.cxx b/src/fl_images_core.cxx
index b44fd6b23..0aa5bc49d 100644
--- a/src/fl_images_core.cxx
+++ b/src/fl_images_core.cxx
@@ -32,6 +32,7 @@
#include <FL/Fl_PNG_Image.H>
#include <FL/Fl_PNM_Image.H>
#include <FL/Fl_SVG_Image.H>
+#include <FL/fl_utf8.h>
#include <stdio.h>
#include <stdlib.h>
#include "flstring.h"
@@ -94,7 +95,9 @@ fl_check_images(const char *name, // I - Filename
#ifdef FLTK_USE_NANOSVG
# if defined(HAVE_LIBZ)
if (header[0] == 0x1f && header[1] == 0x8b) { // denotes gzip'ed data
- gzFile gzf = (gzFile)Fl_SVG_Image::fl_gzopen(name);
+ int fd = fl_open_ext(name, 0, 0);
+ if (fd < 0) return NULL;
+ gzFile gzf = gzdopen(fd, "r");
if (gzf) {
gzread(gzf, header, headerlen);
gzclose(gzf);