diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-30 17:41:22 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-30 17:41:35 +0200 |
| commit | 889acc7d74a8d5c79d4016900294246a9b04b9c2 (patch) | |
| tree | c261b240934887ba2f720c8c3fe08b9dab301f16 /FL | |
| parent | f9bdb5a4db18a6641ba9d78d348fb521750a0fde (diff) | |
Fix use of an SVG image in Fl_Tiled_Image when display is rescaled.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 88c70b3fd..813613fbb 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -82,6 +82,7 @@ class FL_EXPORT Fl_Graphics_Driver { friend class Fl_Pixmap; friend class Fl_Bitmap; friend class Fl_RGB_Image; + friend class Fl_SVG_Image; friend void fl_draw_image(const uchar* buf, int X,int Y,int W,int H, int D, int L); friend void fl_draw_image_mono(const uchar* buf, int X,int Y,int W,int H, int D, int L); friend void fl_draw_image_mono(Fl_Draw_Image_Cb cb, void* data, int X,int Y,int W,int H, int D); @@ -235,7 +236,7 @@ protected: static void draw_empty(Fl_Image* img, int X, int Y) {img->draw_empty(X, Y);} Fl_Graphics_Driver(); - void cache_size(Fl_Image *img, int &width, int &height); + virtual void cache_size(int &width, int &height); static unsigned need_pixmap_bg_color; public: virtual ~Fl_Graphics_Driver() {} ///< Destructor |
