From cf67176b750f4c38c5f909a978906f2ec9318bb7 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 6 Mar 2019 14:54:51 +0100 Subject: Have the fullscreen test program show the screen scaling factor values. --- test/fullscreen.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fullscreen.cxx b/test/fullscreen.cxx index b16e1e992..4abdfd619 100644 --- a/test/fullscreen.cxx +++ b/test/fullscreen.cxx @@ -238,7 +238,7 @@ void update_screeninfo(Fl_Widget *b, void *p) { float dpih, dpiv; Fl::screen_xywh(x, y, w, h, n); Fl::screen_dpi(dpih, dpiv, n); - sprintf(line, "Screen %d: %dx%d@%d,%d DPI:%.1fx%.1f", n, w, h, x, y, dpih, dpiv); + sprintf(line, "Screen %d: %dx%d@%d,%d DPI:%.1fx%.1f scale:%.2f", n, w, h, x, y, dpih, dpiv, Fl::screen_scale(n)); 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); @@ -269,7 +269,7 @@ int main(int argc, char **argv) { if (Fl::args(argc,argv,i,arg) < argc) Fl::fatal("Options are:\n -2 = 2 windows\n -f = startup fullscreen\n%s",Fl::help); - fullscreen_window window(400,400+30*NUMB); window.end(); + fullscreen_window window(460,400+30*NUMB); window.end(); shape_window sw(10,10,window.w()-20,window.h()-30*NUMB-120); -- cgit v1.2.3