Wayland fractional scaling (#7961)

This PR adds support for fractional scaling on Wayland.

Release Notes:

- N/A
This commit is contained in:
Roman 2024-02-19 08:22:03 +03:00 committed by GitHub
parent 4e1e26b696
commit bd137b01ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 91 additions and 21 deletions

View file

@ -276,7 +276,7 @@ impl LinuxTextSystemState {
CacheKey::new(
font.id(),
params.glyph_id.0 as u16,
params.font_size.into(),
(params.font_size * params.scale_factor).into(),
(0.0, 0.0),
)
.0,
@ -308,7 +308,7 @@ impl LinuxTextSystemState {
CacheKey::new(
font.id(),
params.glyph_id.0 as u16,
params.font_size.into(),
(params.font_size * params.scale_factor).into(),
(0.0, 0.0),
)
.0,