mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 04:31:25 +08:00
Documentation only: add details about fl_override_scale() and clip.
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user