x11: fix fractional scaling when fract is 0.75

Fractional scaling was broken when the fractional part was .75 as
the round rounded up the WindowScalingFactor to the upper bound and
applied extra scaling in addition to the one in UnscaledDPI (1.75 *
2 for 175% scaling instead of 1.75 * 1)
This commit is contained in:
RipleyTom 2026-03-11 06:16:05 +01:00
parent 1dc9c53a41
commit b1b09e12c4
No known key found for this signature in database
GPG key ID: FC2B5DEF76BF4CC8

View file

@ -692,7 +692,7 @@ impl Common {
),
(
"Gdk/WindowScalingFactor".into(),
(new_scale.round() as i32).into(),
(new_scale.floor() as i32).into(),
),
(
"Gtk/CursorThemeSize".into(),