summaryrefslogtreecommitdiff
path: root/src/Fl_Input_.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-04-11 10:46:19 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-04-11 10:46:19 +0000
commitef36be385e5bedc22f5e1da11b5eca4a55d3c0b5 (patch)
tree4b8ba90bd67e80284d77f4cccdf697706cad9cb9 /src/Fl_Input_.cxx
parenta9b5c825a4b86454fc1aedccb07dd91713ee8873 (diff)
Redefine FL_ color values to use the color cube.
Add FL_BACKGROUND_COLOR, FL_BACKGROUND2_COLOR, and FL_FOREGROUND_COLOR, and use them instead of FL_GRAY, FL_WHITE, and FL_BLACK, respectively. (FL_GRAY defined to FL_BACKGROUND_COLOR for back-compatibility) Add fl_rgb_color(uchar g) inline method to map 8-bit grayscale to 24-bit RGB color. Doco updates for all of this... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2072 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input_.cxx')
-rw-r--r--src/Fl_Input_.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index ed40d1d48..b60fce213 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.8 2002/04/08 18:32:16 easysw Exp $"
+// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.9 2002/04/11 10:46:19 easysw Exp $"
//
// Common input widget routines for the Fast Light Tool Kit (FLTK).
//
@@ -768,12 +768,12 @@ int Fl_Input_::handletext(int event, int X, int Y, int W, int H) {
Fl_Input_::Fl_Input_(int x, int y, int w, int h, const char* l)
: Fl_Widget(x, y, w, h, l) {
box(FL_DOWN_BOX);
- color(FL_WHITE, FL_SELECTION_COLOR);
+ color(FL_BACKGROUND2_COLOR, FL_SELECTION_COLOR);
align(FL_ALIGN_LEFT);
textsize_ = FL_NORMAL_SIZE;
textfont_ = FL_HELVETICA;
- textcolor_ = FL_BLACK;
- cursor_color_ = FL_BLACK; // was FL_BLUE
+ textcolor_ = FL_FOREGROUND_COLOR;
+ cursor_color_ = FL_FOREGROUND_COLOR; // was FL_BLUE
mark_ = position_ = size_ = 0;
bufsize = 0;
buffer = 0;
@@ -864,5 +864,5 @@ Fl_Input_::~Fl_Input_() {
}
//
-// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.8 2002/04/08 18:32:16 easysw Exp $".
+// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.9 2002/04/11 10:46:19 easysw Exp $".
//