Files
xserver/hw
Olivier Fourdan 5a76ac2611 xwayland: Use double for screen size
Use double precision floating point for the screen size to reduce the
rounding issues when using fractional scaling.

Introduce a couple of simple convenient functions that round the
floating point value into an integer and use it in place of directly
accessing the xwl_screen width/height for integer computation.

This is preparation work for the introduction of fractional scaling,
there should be no functional change at this point.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-By: Kenny Levinsen <kl@kl.wtf>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1197>
(cherry picked from commit 32dad24083)
2026-01-19 12:32:22 -08:00
..
2024-01-08 11:16:11 +00:00
2026-01-19 12:32:22 -08:00
2026-01-19 12:32:22 -08:00
2021-09-07 09:34:31 +00:00