diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2011-01-07 12:39:51 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2011-01-07 12:39:51 +0000 |
| commit | cdaff761f7259e9a0bafa349257abf538afe4b9f (patch) | |
| tree | 629db8740ced41dd05dd510a53511f8080441d43 /test/hello.cxx | |
| parent | 3c25646121df925034cd3f306e8b8a0dcefcb2b5 (diff) | |
src/screen_xywh.cxx:
Fix X11 screen_init() if Xinerama is available, but not active.
Still investigating why there are nonsense dpi values under Cygwin/X11,
but maybe this is an X server problem.
test/hello.cxx:
Extended test statements - don't forget to remove before release.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/hello.cxx')
| -rw-r--r-- | test/hello.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/hello.cxx b/test/hello.cxx index e4372e49a..d0daff93f 100644 --- a/test/hello.cxx +++ b/test/hello.cxx @@ -30,9 +30,17 @@ #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); +#if (1) // FIXME: test screen dimensions and resolution. Remove before release ! + float ppi_h, ppi_v; + int x,y,w,h; + int n = Fl::screen_count(); + for (int i=0; i<n; i++) { + Fl::screen_xywh(x,y,w,h,i); + Fl::screen_dpi(ppi_h, ppi_v, i); + printf("Screen %2d (%4d,%4d,%4d,%4d) res. is %7.3f x %7.3f ppi\n", i, x,y,w,h, ppi_h, ppi_v); + } + fflush(stdout); +#endif // FIXME: test screen dimensions and resolution. Remove before release ! 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); |
