aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/scale.rs2
1 files changed, 1 insertions, 1 deletions
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<i32, Raw>, resolution: Size<i32, Physic
.map_or(1., |(scale, _)| scale)
}
-fn supported_scales(resolution: Size<i32, Physical>) -> impl Iterator<Item = f64> {
+pub fn supported_scales(resolution: Size<i32, Physical>) -> impl Iterator<Item = f64> {
(MIN_SCALE * STEPS..=MAX_SCALE * STEPS)
.map(|x| f64::from(x) / f64::from(STEPS))
.filter(move |scale| is_valid_for_resolution(resolution, *scale))