diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-04-07 10:14:11 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-04-07 10:14:11 +0200 |
| commit | c149091debe9db1f326b90add9f2ec221d1616f9 (patch) | |
| tree | 52d2c7f48b3ae31739d38f8d48d2c5f4a5bd8ac1 /documentation/src | |
| parent | 6f0e9b658090b177062b9bf001a0e757b99c6221 (diff) | |
Wayland: fix reporting of relative location of multiple displays
Diffstat (limited to 'documentation/src')
| -rw-r--r-- | documentation/src/wayland.dox | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/documentation/src/wayland.dox b/documentation/src/wayland.dox index 444ab295b..7afca71d4 100644 --- a/documentation/src/wayland.dox +++ b/documentation/src/wayland.dox @@ -515,10 +515,6 @@ member variable of display # \c n. This variable is used by function \c Fl_Wayland_Window_Driver::make_current() when it calls \c Fl_Wayland_Graphics_Driver::set_buffer() that scales the graphics driver by this factor with \c cairo_scale(). -The display size information of <tt>struct Fl_Wayland_Screen_Driver::output</tt> accounts for -the value of its \c wld_scale member -variable: \c width and \c height are set to the number of pixels of the display / \c wld_scale. - Overall, an FLTK object, say an Fl_Window, of size \c WxH FLTK units occupies <tt>W * wld_scale * gui_scale x H * wld_scale * gui_scale</tt> pixels on the display. @@ -907,8 +903,9 @@ gives access, the Wayland way, to the linked list of displays in the system. <pre> struct Fl_Wayland_Screen_Driver::output { // one record for each display uint32_t id; // an identifier of the display - short width; // nber of horizontal pixels / wld_scale - short height; // nber of vertical pixels / wld_scale + int x, y; // logical position of the top-left of display + int width; // nber of horizontal pixels + int height; // nber of vertical pixels float dpi; // at this point, always 96. struct wl_output *wl_output; // the Wayland object for this display int wld_scale; // Wayland scale factor |
