diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2004-08-27 20:02:45 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2004-08-27 20:02:45 +0000 |
| commit | bc704ad62fb5883469922b1d42142d71f3555fd8 (patch) | |
| tree | 48acf653995f40fe0c64b310b481937d2d809c94 /src/fl_font_mac.cxx | |
| parent | 93798e2f8380067061b3ea2dc047e0a704bd128d (diff) | |
Quartz:
- made multiple contexts for windows, popups and menus work
- still missing: double buffer handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_font_mac.cxx')
| -rw-r--r-- | src/fl_font_mac.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx index ce5e3ba34..613df6ec4 100644 --- a/src/fl_font_mac.cxx +++ b/src/fl_font_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_font_mac.cxx,v 1.1.2.18 2004/08/26 06:18:12 matthiaswm Exp $" +// "$Id: fl_font_mac.cxx,v 1.1.2.19 2004/08/27 20:02:45 matthiaswm Exp $" // // MacOS font selection routines for the Fast Light Tool Kit (FLTK). // @@ -131,6 +131,7 @@ void fl_font(Fl_FontSize* s) { } #elif defined(__APPLE_QUARTZ__) if (!s) return; + if (!fl_gc) return; // no worries, we will assign the font to the context later CGContextSelectFont(fl_gc, s->q_name, (float)s->size, kCGEncodingMacRoman); #else # error : need to defined either Quartz or Quickdraw @@ -225,5 +226,5 @@ void fl_draw(const char* str, int n, int x, int y) { // -// End of "$Id: fl_font_mac.cxx,v 1.1.2.18 2004/08/26 06:18:12 matthiaswm Exp $". +// End of "$Id: fl_font_mac.cxx,v 1.1.2.19 2004/08/27 20:02:45 matthiaswm Exp $". // |
