diff options
| author | Manolo Gouy <Manolo> | 2015-12-13 08:38:16 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-12-13 08:38:16 +0000 |
| commit | 6bdb661c2af402eeb512f8d520f44e24e98e6cfb (patch) | |
| tree | 8618880a1fa45c27896e27b1fbb82b104be34aba | |
| parent | 6a608d4862162420db427453d74e70508f6b593f (diff) | |
Allowing to use FLTK objects in static initializers (cont'd).
On the Mac platform, it's also necessary to initialize the fl_fonts
global variable.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10960 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Widget.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx index 74287640b..edc904055 100644 --- a/src/Fl_Widget.cxx +++ b/src/Fl_Widget.cxx @@ -145,6 +145,9 @@ Fl_Widget::Fl_Widget(int X, int Y, int W, int H, const char* L) { if (!been_here) { been_here = 1; Fl_Display_Device::display_device(); // make sure fl_graphics_driver is initialized +#ifdef __APPLE__ + fl_fonts = Fl_X::calc_fl_fonts(); // make sure fl_fonts is initialized +#endif } } |
