From 54b697cd49d3946ecd1f264c0741f36568822819 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 19 Apr 2018 10:39:46 +0000 Subject: Reorganise access to the value of the GUI scaling factor with public getter and protected, virtual setter member functions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12858 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Graphics_Driver.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL') diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 6f35a6ac9..0d181f68e 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -142,8 +142,8 @@ private: virtual void make_unused_color_(unsigned char &r, unsigned char &g, unsigned char &b) {} // some platforms may need to reimplement this virtual void set_current_(); + float scale_; // scale between FLTK and drawing coordinates: drawing = FLTK * scale_ protected: - float scale_; // scale between user and graphical coordinates: graphical = user * scale_ /** Sets the current value of the scaling factor */ virtual void scale(float f) { scale_ = f; } public: -- cgit v1.2.3