From 7dc05cb20ee92e38b3d1fbd88664e572d73a8d54 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 7 Jan 2011 01:01:04 +0000 Subject: 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 --- test/hello.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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 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); -- cgit v1.2.3