mirror of https://github.com/fltk/fltk
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
This commit is contained in:
parent
22596d3f5f
commit
984fcbaefc
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue