summaryrefslogtreecommitdiff
path: root/src/Fl_Text_Display.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2015-04-13 15:26:57 +0000
committerGreg Ercolano <erco@seriss.com>2015-04-13 15:26:57 +0000
commitd95750ede71befba2a331b3703c43b95323737c3 (patch)
tree75fe89bbfcbae69ec9d7e00ff07e4d2fc2ef1ecc /src/Fl_Text_Display.cxx
parent8c1833f15ccc1042424afe7474d2e453d695aa7e (diff)
Fix problem with fl_contrast() affecting text color unnecessarily
when drawing normal (unselected) text. (See thread on fltk.coredev started 04/07/2015, "RFC: Fl_Text_Display style buffer color weirdness") git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Text_Display.cxx')
-rw-r--r--src/Fl_Text_Display.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 2ae07fa66..c03975e11 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -2150,7 +2150,7 @@ void Fl_Text_Display::draw_string(int style,
if (Fl::focus() == (Fl_Widget*)this) background = fl_color_average(color(), selection_color(), 0.5f);
else background = fl_color_average(color(), selection_color(), 0.6f);
} else background = color();
- foreground = fl_contrast(styleRec->color, background);
+ foreground = styleRec->color;
} else if (style & PRIMARY_MASK) {
if (Fl::focus() == (Fl_Widget*)this) background = selection_color();
else background = fl_color_average(color(), selection_color(), 0.4f);