mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
AudioApplet: Round the volume to the nearest integer
This commit is contained in:
parent
c1458e8061
commit
3f6ccf63fe
Notes:
sideshowbarker
2024-07-18 03:39:09 +09:00
Author: https://github.com/Granddave Commit: https://github.com/SerenityOS/serenity/commit/3f6ccf63fe2 Pull-request: https://github.com/SerenityOS/serenity/pull/10119 Reviewed-by: https://github.com/kleinesfilmroellchen ✅
@ -40,7 +40,7 @@ public:
|
||||
};
|
||||
|
||||
m_audio_client->on_main_mix_volume_change = [this](double volume) {
|
||||
m_audio_volume = static_cast<int>(volume * 100);
|
||||
m_audio_volume = static_cast<int>(round(volume * 100));
|
||||
m_slider->set_value(m_slider->max() - m_audio_volume, GUI::CallOnChange::No);
|
||||
if (!m_audio_muted)
|
||||
update();
|
||||
|
Loading…
Reference in New Issue
Block a user