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> |
||
|---|---|---|
| .. | ||
| kdrive | ||
| vfb | ||
| xfree86 | ||
| xnest | ||
| xquartz | ||
| xwayland | ||
| xwin | ||
| meson.build | ||