aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-support/fltk/fltk/0001-fix_undefined_Fl_XFont_On_Demand.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-support/fltk/fltk/0001-fix_undefined_Fl_XFont_On_Demand.patch')
-rw-r--r--common/recipes-support/fltk/fltk/0001-fix_undefined_Fl_XFont_On_Demand.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/recipes-support/fltk/fltk/0001-fix_undefined_Fl_XFont_On_Demand.patch b/common/recipes-support/fltk/fltk/0001-fix_undefined_Fl_XFont_On_Demand.patch
new file mode 100644
index 00000000..b162de62
--- /dev/null
+++ b/common/recipes-support/fltk/fltk/0001-fix_undefined_Fl_XFont_On_Demand.patch
@@ -0,0 +1,13 @@
+diff --git a/FL/x.H b/FL/x.H
+index 85c6f6c..0ea132f 100644
+--- a/FL/x.H
++++ b/FL/x.H
+@@ -114,7 +114,7 @@ FL_EXPORT Fl_Region XRectangleRegion(int x, int y, int w, int h); // in fl_rect.
+ // With Xlib / X11 fonts, fl_xfont will return the current selected font.
+ // With XFT / X11 fonts, fl_xfont will attempt to return the bitmap "core" font most
+ // similar to (usually the same as) the current XFT font.
+-class Fl_XFont_On_Demand
++class FL_EXPORT Fl_XFont_On_Demand
+ {
+ public:
+ Fl_XFont_On_Demand(XFontStruct* p = NULL) : ptr(p) { }