Rename fl_remove_scale() to fl_override_scale() as discussed in fltk.general

Re: Can custom box type functions handle their own high-DPI screen scaling?
This commit is contained in:
ManoloFLTK
2021-02-27 08:18:01 +01:00
parent 5c1b69cd4f
commit 88a3f7b7be
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -364,7 +364,7 @@ public:
virtual void font_name(int num, const char *name);
// Defaut implementation may be enough
virtual void overlay_rect(int x, int y, int w , int h);
virtual float remove_scale();
virtual float override_scale();
virtual void restore_scale(float);
};
@@ -488,7 +488,7 @@ protected:
void transformed_vertex(double xf, double yf);
virtual void transformed_vertex0(float x, float y);
void vertex(double x, double y);
virtual float remove_scale();
virtual float override_scale();
virtual void restore_scale(float);
};
#endif // FL_DOXYGEN
+1 -1
View File
@@ -688,7 +688,7 @@ FL_EXPORT const char *fl_local_to_mac_roman(const char *t, int n=-1);
/** \addtogroup fl_drawings
@{ */
FL_EXPORT float fl_remove_scale();
FL_EXPORT float fl_override_scale();
FL_EXPORT void fl_restore_scale(float s);