From 3bc90179703b06dbdfaf3553faaab4a26c206ce6 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 27 Apr 2021 09:09:08 +0200 Subject: Slightly simplify gl_texture_fifo::compute_texture() The font size is set to the value necessary for the GL scene before computing the string width. Virtual Fl_Gl_Window_Driver::effective_size() becomes unnecessary. --- src/Fl_Gl_Window_Driver.H | 1 - 1 file changed, 1 deletion(-) (limited to 'src/Fl_Gl_Window_Driver.H') diff --git a/src/Fl_Gl_Window_Driver.H b/src/Fl_Gl_Window_Driver.H index 10cd3f11b..bebde10fc 100644 --- a/src/Fl_Gl_Window_Driver.H +++ b/src/Fl_Gl_Window_Driver.H @@ -97,7 +97,6 @@ public: 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, 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); -- cgit v1.2.3