summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fl_color.cxx4
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;
}