summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-17 11:23:24 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-11-17 11:23:35 +0100
commit2931c29689a91375e610a6a8bca28fe2b10b268f (patch)
tree852c380b9a6558936a82e9706a393f9d19a7abb4 /src
parent1a1ce3375178e7e5fc738f0515a5b36b79e007e1 (diff)
Replace virtual Fl_RGB_Image::cache_size() by virtual Fl_Image::cache_size()
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Graphics_Driver.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx
index 607d14847..988794c34 100644
--- a/src/Fl_Graphics_Driver.cxx
+++ b/src/Fl_Graphics_Driver.cxx
@@ -210,10 +210,7 @@ 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) { // check for depth-4 RGB image
- Fl_RGB_Image *rgb = (Fl_RGB_Image*)img;
- rgb->cache_size(width, height);
- }
+ img->cache_size(width, height);
}
/** Draws an Fl_Pixmap object using this graphics driver.