diff options
| author | Max Horn | 2002-07-26 00:41:07 +0000 |
|---|---|---|
| committer | Max Horn | 2002-07-26 00:41:07 +0000 |
| commit | 84c8d4b689168335da090bae57f4a162ee10018d (patch) | |
| tree | f3f5ea98571500c4a203c6d173b8be9e8d486f95 /gui.cpp | |
| parent | 4211eb8437e5708d9644ded1dd89c9cf526fbf92 (diff) | |
| download | scummvm-rg350-84c8d4b689168335da090bae57f4a162ee10018d.tar.gz scummvm-rg350-84c8d4b689168335da090bae57f4a162ee10018d.tar.bz2 scummvm-rg350-84c8d4b689168335da090bae57f4a162ee10018d.zip | |
added painelf's (still unfinished) sound dialog in NewGUI. Beware, this is work in progress, don't report problems with it just yet, we already know they are there :-)
svn-id: r4635
Diffstat (limited to 'gui.cpp')
| -rw-r--r-- | gui.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -624,9 +624,11 @@ void Gui::handleSoundDialogCommand(int cmd) // (s)he is at it, HiFi equipment uses logarithmic volume controls // (not linear ones as we do) since they match the human ear better. - _s->_sound_volume_master = _gui_variables[0]; // Master - _s->_sound_volume_music = _gui_variables[1]; // Music - _s->_sound_volume_sfx = _gui_variables[2]; // SFX + // The * 256 / 100 is a quick recalibration hack, it will go + // away when we move to newgui + _s->_sound_volume_master = _gui_variables[0] * 255 / 100; // Master + _s->_sound_volume_music = _gui_variables[1] * 255 / 100; // Music + _s->_sound_volume_sfx = _gui_variables[2] * 255 / 100; // SFX _s->_imuse->set_music_volume(_s->_sound_volume_music); _s->_imuse->set_master_volume(_s->_sound_volume_master); |
