diff --git a/src/backlight.rs b/src/backlight.rs index 0b4ff33..e6e33e1 100644 --- a/src/backlight.rs +++ b/src/backlight.rs @@ -140,7 +140,7 @@ impl ModuleImpl for Backlight { x: _x, y, } => { - self.add(y as f32 / 800.0).unwrap(); + self.add(y as f32 / -800.0).unwrap(); match self.sync() { Ok(val) => val, Err(err) => { diff --git a/src/sound.rs b/src/sound.rs index 4cf1626..da437b2 100644 --- a/src/sound.rs +++ b/src/sound.rs @@ -478,7 +478,7 @@ impl ModuleImpl for PulseAudio { self.device .lock() .unwrap() - .set_volume(y as f32 / 800.0) + .set_volume(y as f32 / -800.0) .unwrap(); } Input::Click { pos: _pos, button } => match button {