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
This commit is contained in:
Matthias Melcher 2005-09-15 10:16:08 +00:00
parent 2036009919
commit eefa09e632
3 changed files with 5 additions and 3 deletions

View File

@ -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();
}

View File

@ -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();
}

View File

@ -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));