summaryrefslogtreecommitdiff
path: root/test/hello.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2011-01-07 01:01:04 +0000
committerMatthias Melcher <fltk@matthiasm.com>2011-01-07 01:01:04 +0000
commit7dc05cb20ee92e38b3d1fbd88664e572d73a8d54 (patch)
treec1a4f03879c8c371a67e26c1213f45c5ee0ffebb /test/hello.cxx
parentd6bffb20a3b75037d7e5811fdca87d0040873188 (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/hello.cxx')
-rw-r--r--test/hello.cxx3
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);