diff options
| author | Greg Ercolano <erco@seriss.com> | 2015-04-13 15:26:57 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2015-04-13 15:26:57 +0000 |
| commit | d95750ede71befba2a331b3703c43b95323737c3 (patch) | |
| tree | 75fe89bbfcbae69ec9d7e00ff07e4d2fc2ef1ecc | |
| parent | 8c1833f15ccc1042424afe7474d2e453d695aa7e (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
| -rw-r--r-- | src/Fl_Text_Display.cxx | 2 |
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); |
