Documentation only: add details about fl_override_scale() and clip.

This commit is contained in:
ManoloFLTK
2024-12-03 15:38:17 +01:00
parent e9ea17736b
commit edd680395f
+2 -2
View File
@@ -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);