From c149091debe9db1f326b90add9f2ec221d1616f9 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 7 Apr 2023 10:14:11 +0200 Subject: Wayland: fix reporting of relative location of multiple displays --- documentation/src/wayland.dox | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'documentation') 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 struct Fl_Wayland_Screen_Driver::output 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 W * wld_scale * gui_scale x H * wld_scale * gui_scale pixels on the display. @@ -907,8 +903,9 @@ gives access, the Wayland way, to the linked list of displays in the system.
 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
-- 
cgit v1.2.3