mirror of https://github.com/fltk/fltk
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:
parent
2036009919
commit
eefa09e632
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue