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? --- src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H') diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H index b61761d6f..7e4aab962 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.H @@ -188,6 +188,8 @@ protected: void descriptor_init(const char* name, Fl_Fontsize Size, Fl_Quartz_Font_Descriptor *d); #endif virtual void overlay_rect(int x, int y, int w , int h); + virtual float remove_scale(); + virtual void restore_scale(float); }; class Fl_Quartz_Printer_Graphics_Driver : public Fl_Quartz_Graphics_Driver { -- cgit v1.2.3