diff options
| author | Manolo Gouy <Manolo> | 2016-06-22 08:36:48 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-06-22 08:36:48 +0000 |
| commit | 984fcbaefc0e84f199a361c30b7c08bb8041026d (patch) | |
| tree | c8fd81debc5ff1f7407064f8d31ad2ceb81dfb92 /test/fullscreen.cxx | |
| parent | 22596d3f5ffb014831e82b78438cb7e8b3fe75a4 (diff) | |
Add dots-per-inch info to the screen data displayed by the fullscreen demo.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11796 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/fullscreen.cxx')
| -rw-r--r-- | test/fullscreen.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index 121b0ace4..27fa4ed30 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -235,8 +235,10 @@ void update_screeninfo(Fl_Widget *b, void *p) { browser->add(line); for (int n = 0; n < Fl::screen_count(); n++) { int x, y, w, h; + float dpih, dpiv; Fl::screen_xywh(x, y, w, h, n); - sprintf(line, "Screen %d: %dx%d@%d,%d", n, w, h, x, y); + Fl::screen_dpi(dpih, dpiv, n); + sprintf(line, "Screen %d: %dx%d@%d,%d DPI:%.1fx%.1f", n, w, h, x, y, dpih, dpiv); browser->add(line); Fl::screen_work_area(x, y, w, h, n); sprintf(line, "Work area %d: %dx%d@%d,%d", n, w, h, x, y); |
