diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-11-02 13:57:56 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-11-02 13:57:56 +0000 |
| commit | 8979617990dca283bbf00b7fd4e5fa4a9f6e2c7f (patch) | |
| tree | 3d4480787506a6bd8f190a87c483187a2cda38ef /test/message.cxx | |
| parent | cddb39a066ba484ecf44dceb0bdb2b930a0764c9 (diff) | |
STR #1052: updated color handling in test programs. If you are planning on creating labels based on foreground or background color, you should load the colors *before* creating the user interface. This is done by calling:
Fl::args(arc, argv);
Fl::set_system_colors();
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/message.cxx')
| -rw-r--r-- | test/message.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/message.cxx b/test/message.cxx index c5e865a41..a1ed47d0c 100644 --- a/test/message.cxx +++ b/test/message.cxx @@ -30,8 +30,9 @@ #include <FL/fl_ask.H> #include <stdio.h> -int main(int, char **) { +int main(int argc, char **argv) { Fl::scheme(NULL); + Fl::args(argc, argv); Fl::get_system_colors(); fl_message("Spelling check sucessful, %d errors found with %g%% confidence", |
