xserver/hw
Olivier Fourdan 32dad24083 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>
2024-03-20 09:05:36 +01:00
..
kdrive dix: unexport AddScreen() and AddGPUScreen() 2024-03-03 23:24:28 +00:00
vfb dix: unexport AddScreen() and AddGPUScreen() 2024-03-03 23:24:28 +00:00
xfree86 bsd_init.c: fix build on FreeBSD 2024-03-20 03:32:23 +00:00
xnest xnest: use own dev-privates key for per-screen cursor 2024-03-12 15:24:35 +00:00
xquartz Revert "Fix missing includes of <errno.h>" 2024-03-19 00:33:26 +00:00
xwayland xwayland: Use double for screen size 2024-03-20 09:05:36 +01:00
xwin xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
meson.build Drop DMX DDX 2021-09-07 09:34:31 +00:00