From eefa09e6323bda4ac466ae00ef581a9b77200645 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 15 Sep 2005 10:16:08 +0000 Subject: [PATCH] STR #1023: some more test programs did not load the OS default colors git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/adjuster.cxx | 4 ++-- test/boxtype.cxx | 3 ++- test/message.cxx | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/adjuster.cxx b/test/adjuster.cxx index 9549543d3..e12957ab4 100644 --- a/test/adjuster.cxx +++ b/test/adjuster.cxx @@ -38,7 +38,7 @@ void adjcb(Fl_Widget *o, void *v) { b->redraw(); } -int main(int, char ** argv) { +int main(int argc, char ** argv) { Fl_Window window(320,100,argv[0]); char buf1[100]; @@ -57,7 +57,7 @@ int main(int, char ** argv) { window.resizable(window); window.end(); - window.show(); + window.show(argc, argv); return Fl::run(); } diff --git a/test/boxtype.cxx b/test/boxtype.cxx index 82e110e55..da2ab53f2 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -50,6 +50,7 @@ void bt(const char *name, Fl_Boxtype type, int square=0) { } int main(int argc, char ** argv) { + Fl::get_system_colors(); window = new Fl_Single_Window(4*W,ROWS*H); window->box(FL_FLAT_BOX); window->color(12);// light blue @@ -92,7 +93,7 @@ int main(int argc, char ** argv) { bt("FL_PLASTIC_THIN_DOWN_BOX",FL_PLASTIC_THIN_DOWN_BOX); window->resizable(window); window->end(); - //window->show(argc,argv); + //window->show(argc,argv); // commented out, so we won't load any schemes window->show(); return Fl::run(); } diff --git a/test/message.cxx b/test/message.cxx index 446690579..c5e865a41 100644 --- a/test/message.cxx +++ b/test/message.cxx @@ -32,6 +32,7 @@ int main(int, char **) { Fl::scheme(NULL); + Fl::get_system_colors(); fl_message("Spelling check sucessful, %d errors found with %g%% confidence", 1002, 100*(15/77.0));