diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-29 03:44:33 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-29 03:44:33 +0000 |
| commit | 079082ef7c67377f8e24fcec6cadaa4c49e3af2b (patch) | |
| tree | 6967ed6788ff20429fd5fd9c132517c676cb942f /test/input.cxx | |
| parent | a00b52a6760c83414a518a69d91761389d9db322 (diff) | |
32-bit color (RGB0 or 000I), a la FLTK 2.0, including fl_rgb_color()
function to generate an RGB Fl_Color value.
Sort button names in FLUID.
Fix focus and scroll problems in Fl_Text_Display/Editor.
Fix radio/button demo.
Removed D2 menubar.H header...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1663 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/input.cxx')
| -rw-r--r-- | test/input.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/input.cxx b/test/input.cxx index db65bfba5..2a1e5255c 100644 --- a/test/input.cxx +++ b/test/input.cxx @@ -1,5 +1,5 @@ // -// "$Id: input.cxx,v 1.5.2.4 2001/05/05 23:39:01 spitzak Exp $" +// "$Id: input.cxx,v 1.5.2.4.2.1 2001/10/29 03:44:33 easysw Exp $" // // Input field test program for the Fast Light Tool Kit (FLTK). // @@ -67,7 +67,7 @@ void color_cb(Fl_Widget* button, void* v) { uchar r,g,b; Fl::get_color(c, r,g,b); if (fl_color_chooser(0,r,g,b)) { Fl::set_color(c,r,g,b); Fl::redraw(); - button->labelcolor(contrast(FL_BLACK,c)); + button->labelcolor(fl_contrast(FL_BLACK,c)); button->redraw(); } } @@ -107,10 +107,10 @@ int main(int argc, char **argv) { b->color(input[0]->color()); b->callback(color_cb, (void*)0); b = new Fl_Button(220,y1,100,25,"selection_color"); y1 += 25; b->color(input[0]->selection_color()); b->callback(color_cb, (void*)1); - b->labelcolor(contrast(FL_BLACK,b->color())); + b->labelcolor(fl_contrast(FL_BLACK,b->color())); b = new Fl_Button(220,y1,100,25,"textcolor"); y1 += 25; b->color(input[0]->textcolor()); b->callback(color_cb, (void*)2); - b->labelcolor(contrast(FL_BLACK,b->color())); + b->labelcolor(fl_contrast(FL_BLACK,b->color())); window->end(); window->show(argc,argv); @@ -118,5 +118,5 @@ int main(int argc, char **argv) { } // -// End of "$Id: input.cxx,v 1.5.2.4 2001/05/05 23:39:01 spitzak Exp $". +// End of "$Id: input.cxx,v 1.5.2.4.2.1 2001/10/29 03:44:33 easysw Exp $". // |
