From 5bd467fa17be55397f433dddc065b57cbb7a0615 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 25 Feb 2021 11:06:54 +0100 Subject: Add fl_remove_scale()/fl_restore_scale() to transiently draw without scaling factor. This new API is a response to this message in fltk.general : Can custom box type functions handle their own high-DPI screen scaling? --- FL/Fl_Device.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'FL/Fl_Device.H') diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index c03219b70..e1b80adab 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -81,7 +81,9 @@ public: /** \brief Returns the graphics driver of this drawing surface. */ inline Fl_Graphics_Driver *driver() {return pGraphicsDriver; }; /** The current drawing surface. - In other words, the Fl_Surface_Device object that currently receives all graphics requests */ + In other words, the Fl_Surface_Device object that currently receives all graphics requests + \note It's possible to transiently remove the GUI scaling factor in force in the current + drawing surface with \ref fl_remove_scale(). */ static inline Fl_Surface_Device *surface() { return surface_ ? surface_ : default_surface(); }; -- cgit v1.2.3