From bef46b5cb82464713a117b9bdb920735d1b7de37 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 24 Feb 2021 14:52:36 +0100 Subject: Improve precision of GUI scaling for Windows platform. --- FL/Fl_Graphics_Driver.H | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 2c33212ac..8a7a93b6f 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -237,6 +237,7 @@ protected: Fl_Graphics_Driver(); virtual void cache_size(Fl_Image *img, int &width, int &height); + void cache_size_finalize(Fl_Image *img, int &width, int &height); static unsigned need_pixmap_bg_color; public: virtual ~Fl_Graphics_Driver() {} ///< Destructor @@ -444,6 +445,7 @@ protected: virtual void circle(double x, double y, double r); virtual void ellipse_unscaled(double xt, double yt, double rx, double ry); virtual void font(Fl_Font face, Fl_Fontsize size); + virtual Fl_Font font(); virtual void font_unscaled(Fl_Font face, Fl_Fontsize size); virtual double width(const char *str, int n); virtual double width(unsigned int c); @@ -461,8 +463,10 @@ protected: virtual void draw_unscaled(const char *str, int n, int x, int y); virtual void draw(int angle, const char *str, int n, int x, int y); virtual void draw_unscaled(int angle, const char *str, int n, int x, int y); + virtual void draw(const char *str, int nChars, float x, float y); virtual void rtl_draw(const char* str, int n, int x, int y); virtual void rtl_draw_unscaled(const char* str, int n, int x, int y); + virtual void arc(double x, double y, double r, double start, double end); virtual void arc(int x, int y, int w, int h, double a1, double a2); virtual void arc_unscaled(float x, float y, float w, float h, double a1, double a2); virtual void pie(int x, int y, int w, int h, double a1, double a2); -- cgit v1.2.3