summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fullscreen.cxx4
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);