diff options
| author | Manolo Gouy <Manolo> | 2015-12-15 08:31:20 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-12-15 08:31:20 +0000 |
| commit | dd8c33b19a5b7845b14a4ffc7e2cddefe203f137 (patch) | |
| tree | a304e2c028ee8a0a624d5f8aa84ca7979aeedf67 /src/Fl_Device.cxx | |
| parent | 291cf838bf15eb55aadb828738eba7ed400a72a4 (diff) | |
Mac OS: it is clearer to initialize the fl_fonts global variable in font-related code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Device.cxx')
| -rw-r--r-- | src/Fl_Device.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Fl_Device.cxx b/src/Fl_Device.cxx index 080ad7761..566039149 100644 --- a/src/Fl_Device.cxx +++ b/src/Fl_Device.cxx @@ -75,10 +75,7 @@ void Fl_Graphics_Driver::text_extents(const char*t, int n, int& dx, int& dy, int /** A constructor that sets the graphics driver used by the display */ Fl_Display_Device::Fl_Display_Device(Fl_Graphics_Driver *graphics_driver) : Fl_Surface_Device(graphics_driver) { -this->set_current(); -#ifdef __APPLE__ - if (!fl_fonts) fl_fonts = Fl_X::calc_fl_fonts(); // make sure fl_fonts is initialized -#endif + this->set_current(); }; |
