diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-06 14:54:51 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-03-06 14:54:51 +0100 |
| commit | cf67176b750f4c38c5f909a978906f2ec9318bb7 (patch) | |
| tree | 3a01d47a98fa8b42a689f3b5eaca20490e353fa7 /test/fullscreen.cxx | |
| parent | d988930461b449f8e0c29507048e3a3b205504d7 (diff) | |
Have the fullscreen test program show the screen scaling factor values.
Diffstat (limited to 'test/fullscreen.cxx')
| -rw-r--r-- | test/fullscreen.cxx | 4 |
1 files 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); |
