diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-01-13 15:12:26 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-01-13 15:12:26 +0100 |
| commit | 7ef23153df6ab66a15a69c052df0ccd82bc6d352 (patch) | |
| tree | db88693f879dd0bdaf0313e323fd24974a4e3e84 /test/hello.cxx | |
| parent | fba4d58509e337c3f868c7ae68b3566f85ba86f5 (diff) | |
Update test/hello.cxx and related image
Improve CMP compatibility and use a better (anti-aliased) image for
the docs.
Diffstat (limited to 'test/hello.cxx')
| -rw-r--r-- | test/hello.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/hello.cxx b/test/hello.cxx index b301832b7..d7308cd78 100644 --- a/test/hello.cxx +++ b/test/hello.cxx @@ -1,7 +1,7 @@ // // Hello, World! program for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2021 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -19,14 +19,13 @@ #include <FL/Fl_Box.H> int main(int argc, char **argv) { - Fl_Window *window = new Fl_Window(340,180); - Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!"); + Fl_Window *window = new Fl_Window(340, 180); + Fl_Box *box = new Fl_Box(20, 40, 300, 100, "Hello, World!"); box->box(FL_UP_BOX); - box->labelfont(FL_BOLD+FL_ITALIC); + box->labelfont(FL_BOLD + FL_ITALIC); box->labelsize(36); box->labeltype(FL_SHADOW_LABEL); window->end(); window->show(argc, argv); return Fl::run(); } - |
