diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-24 14:52:36 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-24 14:52:47 +0100 |
| commit | bef46b5cb82464713a117b9bdb920735d1b7de37 (patch) | |
| tree | e645da2fdd342a8a8a41c90b54b2e96e29d849a0 /FL/Fl_Graphics_Driver.H | |
| parent | 9f84fd05e8090c3b7554c965d15ac5c41a0d4852 (diff) | |
Improve precision of GUI scaling for Windows platform.
Diffstat (limited to 'FL/Fl_Graphics_Driver.H')
| -rw-r--r-- | FL/Fl_Graphics_Driver.H | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
