diff --git a/voxygen/src/hud/mod.rs b/voxygen/src/hud/mod.rs index b4b58c1937..66f1bd28dd 100644 --- a/voxygen/src/hud/mod.rs +++ b/voxygen/src/hud/mod.rs @@ -642,9 +642,7 @@ impl Hud { &global_state, &self.show, &self.imgs, - &self.fonts, - self.show.rel_to_win, - self.show.absolute, + &self.fonts, ) .set(self.ids.settings_window, ui_widgets) { diff --git a/voxygen/src/hud/settings_window.rs b/voxygen/src/hud/settings_window.rs index 7d26160c51..48c1e55e45 100644 --- a/voxygen/src/hud/settings_window.rs +++ b/voxygen/src/hud/settings_window.rs @@ -108,9 +108,7 @@ impl<'a> SettingsWindow<'a> { global_state: &'a GlobalState, show: &'a Show, imgs: &'a Imgs, - fonts: &'a Fonts, - rel_to_win: bool, - absolute: bool, + fonts: &'a Fonts, ) -> Self { Self { global_state, @@ -396,13 +394,13 @@ impl<'a> Widget for SettingsWindow<'a> { if let ScaleMode::Absolute(scale) = ui_scale { if let Some(new_val) = ImageSlider::continuous( scale.log(2.0), - -0.5, - 1.2, + 0.5f64.log(2.0), + 1.2f64.log(2.0), self.imgs.slider_indicator, self.imgs.slider, ) .w_h(208.0, 22.0) - .right_from(state.ids.absolute_scale_text, 10.0) + .right_from(state.ids.absolute_scale_text, 12.0) .track_breadth(30.0) .slider_length(10.0) .pad_track((5.0, 5.0))