diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-12-03 15:38:17 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-12-03 15:38:46 +0100 |
| commit | edd680395fd66ab0d4c57f4acf63856e9dfd0615 (patch) | |
| tree | 928c9f9d8d701900b7e021b12ab8fef06d09c74d | |
| parent | e9ea17736b29720b915a34ba90364b4a1d216852 (diff) | |
Documentation only: add details about fl_override_scale() and clip.
| -rw-r--r-- | src/fl_draw.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index 72823b078..652f46058 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -582,14 +582,14 @@ int fl_height(int font, int size) { This must be matched by a later call to fl_restore_scale(). This function can be used to transiently perform drawing operations that are not rescaled by the current value of the GUI scaling factor. - The resulting drawing context has no clipping region. + It's not supported to call fl_push_clip() while transiently removing scaling. \return The GUI scaling factor value that was in place when the function started. */ float fl_override_scale() { return fl_graphics_driver->override_scale(); } -/** Restores the GUI scaling factor and the clipping region in subsequent drawing operations. +/** Restores the GUI scaling factor in subsequent drawing operations. \param s Value returned by a previous call to fl_override_scale(). */ void fl_restore_scale(float s) { fl_graphics_driver->restore_scale(s); |
