From af1ec00483000fe92ad902a599779863f42b1e17 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 16 May 2002 02:16:17 +0000 Subject: More color fixes for Xft (fl_color_ wasn't always set) Fix plastic boxtype (1 pixel too high) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2234 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_color_mac.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/fl_color_mac.cxx') diff --git a/src/fl_color_mac.cxx b/src/fl_color_mac.cxx index 9929b9624..c40bc9c4b 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.2 2002/01/01 15:11:32 easysw Exp $" +// "$Id: fl_color_mac.cxx,v 1.1.2.3 2002/05/16 02:16:17 easysw Exp $" // // MacOS color functions for the Fast Light Tool Kit (FLTK). // @@ -72,6 +72,7 @@ void fl_color(Fl_Color i) { void fl_color(uchar r, uchar g, uchar b) { RGBColor rgb; + fl_color_ = fl_rgb_color(r, g, b); rgb.red = (r<<8)|r; rgb.green = (g<<8)|g; rgb.blue = (b<<8)|b; @@ -85,5 +86,5 @@ void Fl::set_color(Fl_Color i, unsigned c) { } // -// End of "$Id: fl_color_mac.cxx,v 1.1.2.2 2002/01/01 15:11:32 easysw Exp $". +// End of "$Id: fl_color_mac.cxx,v 1.1.2.3 2002/05/16 02:16:17 easysw Exp $". // -- cgit v1.2.3