From 576f02c0637cdbb641be4b1073b44c64a2c02a94 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 19 Jan 1999 19:10:39 +0000 Subject: Fixes from Bill: - Fluid fixes for menu item numbering and adding of #define stuff to include file to prevent multiple inclusion. - Fixed contrast function (again). - Fixed fractals demo (not using glutMainLoop()... git-svn-id: file:///fltk/svn/fltk/trunk@232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_color.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fl_color.cxx b/src/fl_color.cxx index 7acf7ec1e..2c1544a18 100644 --- a/src/fl_color.cxx +++ b/src/fl_color.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_color.cxx,v 1.10 1999/01/13 15:56:22 mike Exp $" +// "$Id: fl_color.cxx,v 1.11 1999/01/19 19:10:39 mike Exp $" // // Color functions for the Fast Light Tool Kit (FLTK). // @@ -340,14 +340,14 @@ Fl_Color inactive(Fl_Color c) { Fl_Color contrast(Fl_Color fg, Fl_Color bg) { int c1 = int(fl_cmap[fg]); int c2 = int(fl_cmap[bg]); - if (((c1|(c1<<1)&0x800000)^(c2|(c2<<1)&0x800000))&0x80808000) + if ((c1^c2)&0x80800000) return fg; - else if (c2&0x80c00000) + else if (c2&0x80800000) return FL_GRAY_RAMP; // black from gray ramp else return (Fl_Color)(FL_COLOR_CUBE-1); // white from gray ramp } // -// End of "$Id: fl_color.cxx,v 1.10 1999/01/13 15:56:22 mike Exp $". +// End of "$Id: fl_color.cxx,v 1.11 1999/01/19 19:10:39 mike Exp $". // -- cgit v1.2.3