summaryrefslogtreecommitdiff
path: root/src/Fl_Graphics_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-12 14:50:45 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-12 14:50:57 +0100
commita4bacf83c44cdad8161af80f55706a5326dd0c0a (patch)
tree60f144229f75faf8cb725e1c92002eb364377863 /src/Fl_Graphics_Driver.cxx
parent231159e16c7bd8438f3e567507f5ad394d00c760 (diff)
Fix for issue #155 - continued
Restores proper separation of what is in libfltk and what is in libfltk_images
Diffstat (limited to 'src/Fl_Graphics_Driver.cxx')
-rw-r--r--src/Fl_Graphics_Driver.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx
index c5cd9d6c5..607d14847 100644
--- a/src/Fl_Graphics_Driver.cxx
+++ b/src/Fl_Graphics_Driver.cxx
@@ -29,7 +29,6 @@
#include <FL/Fl_Image_Surface.H>
#include <FL/math.h>
#include <FL/platform.H>
-#include <FL/Fl_SVG_Image.H>
FL_EXPORT Fl_Graphics_Driver *fl_graphics_driver; // the current driver of graphics operations
@@ -211,9 +210,9 @@ void Fl_Graphics_Driver::cache_size(Fl_Image *img, int &width, int &height)
width = (width+1) * scale();
height = (height+1) * scale();
}
- if (img->d() == 4 && ((Fl_RGB_Image*)img)->as_svg_image()) { // check for SVG image
- Fl_SVG_Image *svg = (Fl_SVG_Image*)img;
- svg->cache_size(width, height);
+ if (img->d() == 4) { // check for depth-4 RGB image
+ Fl_RGB_Image *rgb = (Fl_RGB_Image*)img;
+ rgb->cache_size(width, height);
}
}