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:
parent
1dc9c53a41
commit
b1b09e12c4
1 changed files with 1 additions and 1 deletions
|
|
@ -692,7 +692,7 @@ impl Common {
|
|||
),
|
||||
(
|
||||
"Gdk/WindowScalingFactor".into(),
|
||||
(new_scale.round() as i32).into(),
|
||||
(new_scale.floor() as i32).into(),
|
||||
),
|
||||
(
|
||||
"Gtk/CursorThemeSize".into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue