diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-11-17 11:23:24 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-11-17 11:23:35 +0100 |
| commit | 2931c29689a91375e610a6a8bca28fe2b10b268f (patch) | |
| tree | 852c380b9a6558936a82e9706a393f9d19a7abb4 /src/Fl_Graphics_Driver.cxx | |
| parent | 1a1ce3375178e7e5fc738f0515a5b36b79e007e1 (diff) | |
Replace virtual Fl_RGB_Image::cache_size() by virtual Fl_Image::cache_size()
Diffstat (limited to 'src/Fl_Graphics_Driver.cxx')
| -rw-r--r-- | src/Fl_Graphics_Driver.cxx | 5 |
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. |
