mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Allow scale below 1
This commit is contained in:
+2
-2
@@ -1053,7 +1053,7 @@ impl State {
|
|||||||
let resolution = output.current_mode().unwrap().size;
|
let resolution = output.current_mode().unwrap().size;
|
||||||
guess_monitor_scale(size_mm, resolution)
|
guess_monitor_scale(size_mm, resolution)
|
||||||
});
|
});
|
||||||
let scale = closest_representable_scale(scale.clamp(1., 10.));
|
let scale = closest_representable_scale(scale.clamp(0.1, 10.));
|
||||||
|
|
||||||
let mut transform = config
|
let mut transform = config
|
||||||
.map(|c| ipc_transform_to_smithay(c.transform))
|
.map(|c| ipc_transform_to_smithay(c.transform))
|
||||||
@@ -1736,7 +1736,7 @@ impl Niri {
|
|||||||
let resolution = output.current_mode().unwrap().size;
|
let resolution = output.current_mode().unwrap().size;
|
||||||
guess_monitor_scale(size_mm, resolution)
|
guess_monitor_scale(size_mm, resolution)
|
||||||
});
|
});
|
||||||
let scale = closest_representable_scale(scale.clamp(1., 10.));
|
let scale = closest_representable_scale(scale.clamp(0.1, 10.));
|
||||||
|
|
||||||
let mut transform = c
|
let mut transform = c
|
||||||
.map(|c| ipc_transform_to_smithay(c.transform))
|
.map(|c| ipc_transform_to_smithay(c.transform))
|
||||||
|
|||||||
Reference in New Issue
Block a user