From 957becbe2836d1bc4a8be76b7ca4abb445a181f3 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 21 Feb 2024 09:38:24 +0100 Subject: Fix: fl_height(int, int) decreases the font size after each call (#915) --- FL/Fl_Graphics_Driver.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL/Fl_Graphics_Driver.H') diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 49d6d4fc4..3adf6d6c9 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -410,6 +410,7 @@ struct Fl_Fontdesc { In the future, it may also be used by other platforms. */ class FL_EXPORT Fl_Scalable_Graphics_Driver : public Fl_Graphics_Driver { + Fl_Fontsize fontsize_; // scale-independent font size value public: Fl_Scalable_Graphics_Driver(); // This function aims to compute accurately int(x * s) in -- cgit v1.2.3