diff options
author | Riteo <riteo@posteo.net> | 2024-03-16 14:48:11 +0100 |
---|---|---|
committer | Riteo <riteo@posteo.net> | 2024-05-07 19:50:48 +0200 |
commit | 1bb8199342fc40e00145ff06a634c3389f1ba0d6 (patch) | |
tree | f96812861db6c062850ea079a85097389532d84c /servers/rendering/rendering_server_default.cpp | |
parent | d8aa2c65a9f857e86d0c1fc1cc6b95b8ccf23099 (diff) | |
download | redot-engine-1bb8199342fc40e00145ff06a634c3389f1ba0d6.tar.gz |
Wayland: Workaround API limitation in screen/UI scale logic
Mainly, this fixes auto UI scaling with _single-monitor_ fractional
setups (see the comment in `display_server_wayland.cpp` for more info).
This is the result of a bunch of current limitations, mainly the fact
that the UI scale is static (it's probed at startup) and the fact that
Wayland exposes fractional scales only at the window-level, by design.
The `screen_get_scale` special case should help in 99% of cases, while
the auto UI scale part will unfortunately only help with single-screen
situations, as multi-screen fractional scaling requires dynamic UI
scale changing.
Diffstat (limited to 'servers/rendering/rendering_server_default.cpp')
0 files changed, 0 insertions, 0 deletions