diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-19 15:03:21 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-02-19 15:03:32 +0100 |
| commit | 32f926c360ffad8071cf3a7866907ec2a8153771 (patch) | |
| tree | da528a095072e46dcf3f9fe868e50b3b8dfb0ab8 /src/Fl_Gl_Window_Driver.H | |
| parent | 3c37cd033bcc1cc760868bb66772441bb8129acd (diff) | |
Remove use of static global var gl_fontsize inside virtual member Fl_Gl_Window_Driver::alpha_mask_for_string()
Diffstat (limited to 'src/Fl_Gl_Window_Driver.H')
| -rw-r--r-- | src/Fl_Gl_Window_Driver.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Gl_Window_Driver.H b/src/Fl_Gl_Window_Driver.H index ddc52c794..10cd3f11b 100644 --- a/src/Fl_Gl_Window_Driver.H +++ b/src/Fl_Gl_Window_Driver.H @@ -96,7 +96,8 @@ public: virtual int overlay_color(Fl_Color i) {return 0;} // support for gl_color() with HAVE_GL_OVERLAY static void draw_string_with_texture(const char* str, int n); // cross-platform // support for gl_draw(). The cross-platform version may be enough. - virtual char *alpha_mask_for_string(const char *str, int n, int w, int h); + virtual char *alpha_mask_for_string(const char *str, int n, int w, int h, Fl_Fontsize fs); + virtual Fl_Fontsize effective_size(); virtual int genlistsize() { return 0; } // support for gl_draw() virtual Fl_Font_Descriptor** fontnum_to_fontdescriptor(int fnum); virtual Fl_RGB_Image* capture_gl_rectangle(int x, int y, int w, int h); |
