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/buttons.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/buttons.cxx') diff --git a/test/buttons.cxx b/test/buttons.cxx index 752ca1d56..bacb28f4f 100644 --- a/test/buttons.cxx +++ b/test/buttons.cxx @@ -46,7 +46,8 @@ int main(int argc, char ** argv) { new Fl_Round_Button(150,50,160,30,"Fl_Round_Button"); new Fl_Check_Button(150,90,160,30,"Fl_Check_Button"); window->end(); - window->show(argc,argv); + //window->show(argc,argv); + window->show(); return Fl::run(); } -- cgit v1.2.3