diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-12-29 14:05:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-12-29 14:05:13 +0000 |
| commit | f17882c5cb4724f432335381edd9f8785d70adac (patch) | |
| tree | 1a8cfff5f787bb1e9270b1c8800ffb1dec4cd343 /src/Fl_Input_.cxx | |
| parent | 434609ab0c01b849056ab24356609e213a32d98a (diff) | |
Fixed the Fl_Input selection color when the user specifies a foreground or
background color on the command-line (patch from Bill).
git-svn-id: file:///fltk/svn/fltk/trunk@172 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input_.cxx')
| -rw-r--r-- | src/Fl_Input_.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index db50e4e75..c40e76027 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input_.cxx,v 1.10 1998/12/02 15:39:31 mike Exp $" +// "$Id: Fl_Input_.cxx,v 1.11 1998/12/29 14:05:12 mike Exp $" // // Common input widget routines for the Fast Light Tool Kit (FLTK). // @@ -231,7 +231,8 @@ void Fl_Input_::drawtext(int X, int Y, int W, int H) { } fl_clip(X, Y, W, H); - Fl_Color color = active_r() ? textcolor() : inactive(textcolor()); + Fl_Color color = + active_r() ? contrast(textcolor(),this->color()) : inactive(textcolor()); p = value(); // visit each line and draw it: @@ -727,5 +728,5 @@ Fl_Input_::~Fl_Input_() { } // -// End of "$Id: Fl_Input_.cxx,v 1.10 1998/12/02 15:39:31 mike Exp $". +// End of "$Id: Fl_Input_.cxx,v 1.11 1998/12/29 14:05:12 mike Exp $". // |
