From 8979617990dca283bbf00b7fd4e5fa4a9f6e2c7f Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 2 Nov 2005 13:57:56 +0000 Subject: 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 --- test/message.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/message.cxx') 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 #include -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", -- cgit v1.2.3