diff options
Diffstat (limited to 'src')
| -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. |
