summaryrefslogtreecommitdiff
path: root/test/buttons.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-11-02 13:57:56 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-11-02 13:57:56 +0000
commit8979617990dca283bbf00b7fd4e5fa4a9f6e2c7f (patch)
tree3d4480787506a6bd8f190a87c483187a2cda38ef /test/buttons.cxx
parentcddb39a066ba484ecf44dceb0bdb2b930a0764c9 (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/buttons.cxx')
-rw-r--r--test/buttons.cxx3
1 files changed, 2 insertions, 1 deletions
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();
}