From fbc3f7a69f9c639135a7c4310b08eb5342d4f22c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 15 Jan 2026 19:12:56 +0100 Subject: Improve documentation of member variable Fl_SVG_Image::proportional (#1361) --- FL/Fl_SVG_Image.H | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FL/Fl_SVG_Image.H b/FL/Fl_SVG_Image.H index a8a505928..a7e706cac 100644 --- a/FL/Fl_SVG_Image.H +++ b/FL/Fl_SVG_Image.H @@ -24,7 +24,7 @@ struct NSVGimage; /** The Fl_SVG_Image class supports loading, caching and drawing of scalable vector graphics (SVG) images. The FLTK library performs parsing and rasterization of SVG data using a modified version of the \c nanosvg software (https://github.com/memononen/nanosvg). - The software modification allows the option to change the image ratio + The software modification allows the option to change the aspect ratio while performing rasterization. Use Fl_Image::fail() to check if the Fl_SVG_Image failed to load. fail() returns ERR_FILE_ACCESS @@ -33,7 +33,8 @@ struct NSVGimage; Rasterization is not done until the image is first drawn or resize() or normalize() is called. Therefore, \ref array is NULL until then. The delayed rasterization ensures an Fl_SVG_Image is always rasterized - to the exact screen resolution at which it is drawn. + to the exact screen resolution at which it is drawn. Member \ref proportional of an Fl_SVG_Image object + must be set to \c false to allow this image to be rasterized with an altered aspect ratio. The Fl_SVG_Image class draws images computed by \c nanosvg with the following known limitations -- cgit v1.2.3