summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-02 13:22:48 +0000
committerManolo Gouy <Manolo>2016-04-02 13:22:48 +0000
commitd011d5b4f060166f87fc44594f7f31ddf6b652e9 (patch)
tree45d6edbcd0dcad0abf71a76a146be36716b0a927 /FL
parentc03f3d8946c3a68aea2c8c11705e04eeff0e02c9 (diff)
Replace src/Fl_Font.H by one file for each platform.
This file contained nearly only platform-specific code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Screen_Driver.H2
-rw-r--r--FL/mac.H3
-rw-r--r--FL/x.H1
3 files changed, 3 insertions, 3 deletions
diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H
index 659caedf7..0ce662287 100644
--- a/FL/Fl_Screen_Driver.H
+++ b/FL/Fl_Screen_Driver.H
@@ -112,6 +112,8 @@ public:
Fl_Text_Editor::Key_Binding *text_editor_extra_key_bindings;
// default implementation may be enough
virtual int text_display_can_leak() { return 0; }
+ // an implementation which returns NULL may be enough
+ static struct Fl_Fontdesc *calc_fl_fonts();
};
diff --git a/FL/mac.H b/FL/mac.H
index 82cba2d4f..0a6256967 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -107,7 +107,7 @@ struct flCocoaRegion {
}; // a region is the union of a series of rectangles
# include <FL/Fl_Window.H>
-# include "../src/Fl_Font.H"
+#include "../src/drivers/Quartz/Fl_Font.H"
#ifndef CGFLOAT_DEFINED //appears with 10.5 in CGBase.h
#if defined(__LP64__) && __LP64__
@@ -167,7 +167,6 @@ public:
static CGImageRef CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, int h);
static unsigned char *bitmap_from_window_rect(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel);
static void screen_work_area(int &X, int &Y, int &W, int &H, int n); // compute work area of a given screen
- static Fl_Fontdesc* calc_fl_fonts(void); // computes the fl_fonts global variable
static void clip_to_rounded_corners(CGContextRef gc, int w, int h);
static void complete_copy_pdf_and_tiff(CGContextRef gc, CFMutableDataRef pdfdata);
static void draw_layer_to_context(CALayer *layer, CGContextRef gc, int w, int h);
diff --git a/FL/x.H b/FL/x.H
index 64d444045..7f96b88fe 100644
--- a/FL/x.H
+++ b/FL/x.H
@@ -108,7 +108,6 @@ private:
XFontStruct *ptr;
};
extern FL_EXPORT Fl_XFont_On_Demand fl_xfont;
-extern FL_EXPORT XFontStruct* fl_X_core_font();
// this object contains all X-specific stuff about a window:
// Warning: this object is highly subject to change!