summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-04-19 10:39:46 +0000
committerManolo Gouy <Manolo>2018-04-19 10:39:46 +0000
commit54b697cd49d3946ecd1f264c0741f36568822819 (patch)
tree399901a93956b7558be6d5e77ba62cb93ee7141d /FL
parentd375918a5ea3210d0d148ec215f1494cbfbd927e (diff)
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
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Graphics_Driver.H2
1 files changed, 1 insertions, 1 deletions
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: