diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-01-24 12:03:36 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-01-24 12:03:36 +0000 |
| commit | ecdd893933dfcca8466a4af8c75b88e526af2e4d (patch) | |
| tree | 2c2eb40fcd1d6139e47c1fa4438fabf5f5a924eb /src/fl_color.cxx | |
| parent | f8d84949c43917ffea5d9b6a998db2360f9d82f6 (diff) | |
- Added automated little helpers to Sudoku
(Menu Difficulty->add helpers)
- Added example code for Wizard with the
Tabs demo (STR #1564)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_color.cxx')
| -rw-r--r-- | src/fl_color.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_color.cxx b/src/fl_color.cxx index 999287468..7ccb14ed4 100644 --- a/src/fl_color.cxx +++ b/src/fl_color.cxx @@ -378,8 +378,8 @@ Fl_Color fl_contrast(Fl_Color fg, Fl_Color bg) { l2 = ((c2 >> 24) * 31 + ((c2 >> 16) & 255) * 61 + ((c2 >> 8) & 255) * 8) / 100; // Compare and return the contrasting color... - if ((l1 - l2) > 85) return fg; - else if ((l2 - l1) > 85) return fg; + if ((l1 - l2) > 90) return fg; + else if ((l2 - l1) > 90) return fg; else if (l2 > 127) return FL_BLACK; else return FL_WHITE; } |
