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_color_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_color_mac.cxx')
| -rw-r--r-- | src/fl_color_mac.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fl_color_mac.cxx b/src/fl_color_mac.cxx index d05d5f986..b64f5501b 100644 --- a/src/fl_color_mac.cxx +++ b/src/fl_color_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_color_mac.cxx,v 1.1.2.8 2004/08/26 00:18:43 matthiaswm Exp $" +// "$Id: fl_color_mac.cxx,v 1.1.2.9 2004/08/27 20:02:44 matthiaswm Exp $" // // MacOS color functions for the Fast Light Tool Kit (FLTK). // @@ -71,6 +71,7 @@ void fl_color(Fl_Color i) { rgb.blue = (b<<8)|b; RGBForeColor(&rgb); #elif defined(__APPLE_QUARTZ__) + if (!fl_gc) return; // no context yet? We will assign the color later. float fr = r/255.0f; float fg = g/255.0f; float fb = b/255.0f; @@ -107,5 +108,5 @@ void Fl::set_color(Fl_Color i, unsigned c) { } // -// End of "$Id: fl_color_mac.cxx,v 1.1.2.8 2004/08/26 00:18:43 matthiaswm Exp $". +// End of "$Id: fl_color_mac.cxx,v 1.1.2.9 2004/08/27 20:02:44 matthiaswm Exp $". // |
