diff --git a/FL/Fl_SVG_Image.H b/FL/Fl_SVG_Image.H index d49d1db59..4e50b390d 100644 --- a/FL/Fl_SVG_Image.H +++ b/FL/Fl_SVG_Image.H @@ -172,6 +172,7 @@ public: Fl_SVG_Image *as_svg_image() override { return this; } const Fl_SVG_Image *as_svg_image() const override { return this; } void normalize() override; + void scale(int w, int h, int keep_aspect = 1, int can_expand = 0) override; }; #endif // FL_SVG_IMAGE_H diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx index 1e3a05d06..f8e8a024b 100644 --- a/src/Fl_SVG_Image.cxx +++ b/src/Fl_SVG_Image.cxx @@ -412,4 +412,9 @@ void Fl_SVG_Image::normalize() { if (!array) resize(w(), h()); } + +void Fl_SVG_Image::scale(int w, int h, int keep_aspect, int can_expand) { + Fl_Image::scale(w, h, keep_aspect, 1); +} + #endif // FLTK_USE_SVG