Fixed no sound when playing music, fixed music volume reverted on new track

This commit is contained in:
Sergii Pylypenko
2014-05-28 15:41:53 +03:00
parent 1d82f57945
commit 657e563f7c
3 changed files with 6 additions and 2 deletions

View File

@@ -689,7 +689,7 @@ struct MusicWindow : public Window {
if (_current_text_dir == TD_RTL) new_vol = 127 - new_vol;
if (new_vol != *vol) {
*vol = new_vol;
if (widget == WID_M_MUSIC_VOL) MusicVolumeChanged(new_vol);
if (widget == WID_M_MUSIC_VOL) MusicVolumeChanged((new_vol * new_vol) / 127); // Kinda logarithmic scale
this->SetDirty();
}