diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-05-19 14:56:42 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-05-19 14:56:42 +0000 |
| commit | 463d015d283999777aa8f0cd69d1543ff074f01e (patch) | |
| tree | 3c8fdf288b707157fc454201c907eb271363b8c0 /src | |
| parent | 8a2aa0a0d1876c88953de29e0709e290cc8daa97 (diff) | |
Revert to old color function; new one has too little contrast on OSX.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2983 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_plastic.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/fl_plastic.cxx b/src/fl_plastic.cxx index f073463e3..20570cfa1 100644 --- a/src/fl_plastic.cxx +++ b/src/fl_plastic.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_plastic.cxx,v 1.1.2.18 2003/05/18 22:12:24 easysw Exp $" +// "$Id: fl_plastic.cxx,v 1.1.2.19 2003/05/19 14:56:42 easysw Exp $" // // "Plastic" drawing routines for the Fast Light Tool Kit (FLTK). // @@ -40,11 +40,12 @@ // //#define USE_OLD_PLASTIC_BOX +#define USE_OLD_PLASTIC_COLOR extern uchar *fl_gray_ramp(); inline Fl_Color shade_color(uchar gc, Fl_Color bc) { -#ifdef USE_OLD_PLASTIC_BOX +#ifdef USE_OLD_PLASTIC_COLOR return fl_color_average((Fl_Color)gc, bc, 0.75f); #else unsigned grgb = Fl::get_color((Fl_Color)gc), @@ -72,7 +73,7 @@ inline Fl_Color shade_color(uchar gc, Fl_Color bc) { return fl_rgb_color(red, green, blue); else return fl_color_average(FL_GRAY, fl_rgb_color(red, green, blue), 0.75f); -#endif // USE_OLD_PLASTIC_BOX +#endif // USE_OLD_PLASTIC_COLOR } @@ -225,5 +226,5 @@ Fl_Boxtype fl_define_FL_PLASTIC_UP_BOX() { // -// End of "$Id: fl_plastic.cxx,v 1.1.2.18 2003/05/18 22:12:24 easysw Exp $". +// End of "$Id: fl_plastic.cxx,v 1.1.2.19 2003/05/19 14:56:42 easysw Exp $". // |
