From b853d5b1247fddfaeac0dbdfb9304c69c6de463a Mon Sep 17 00:00:00 2001 From: Val Packett Date: Sat, 4 Jan 2025 01:05:08 -0300 Subject: dbus: DisplayConfig: report fractional scales as supported --- src/utils/scale.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/scale.rs') diff --git a/src/utils/scale.rs b/src/utils/scale.rs index ff89b4cb..6736b464 100644 --- a/src/utils/scale.rs +++ b/src/utils/scale.rs @@ -38,7 +38,7 @@ pub fn guess_monitor_scale(size_mm: Size, resolution: Size) -> impl Iterator { +pub fn supported_scales(resolution: Size) -> impl Iterator { (MIN_SCALE * STEPS..=MAX_SCALE * STEPS) .map(|x| f64::from(x) / f64::from(STEPS)) .filter(move |scale| is_valid_for_resolution(resolution, *scale)) -- cgit