diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-01-07 01:01:04 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-01-07 01:01:04 +0000 |
| commit | 7dc05cb20ee92e38b3d1fbd88664e572d73a8d54 (patch) | |
| tree | c1a4f03879c8c371a67e26c1213f45c5ee0ffebb /test | |
| parent | d6bffb20a3b75037d7e5811fdca87d0040873188 (diff) | |
First attempt at finding the screen pixel sizes. Can't test Xinerame, MSWindows, or X11 yet.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8204 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
| -rw-r--r-- | test/hello.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/hello.cxx b/test/hello.cxx index 954d01eb4..e4372e49a 100644 --- a/test/hello.cxx +++ b/test/hello.cxx @@ -30,6 +30,9 @@ #include <FL/Fl_Box.H> int main(int argc, char **argv) { + float h, v; + Fl::screen_dpi(h, v); + printf("Screen res is %g x %g ppi\n", h, v); 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); |
