aboutsummaryrefslogtreecommitdiff
path: root/gui.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-26 00:41:07 +0000
committerMax Horn2002-07-26 00:41:07 +0000
commit84c8d4b689168335da090bae57f4a162ee10018d (patch)
treef3f5ea98571500c4a203c6d173b8be9e8d486f95 /gui.cpp
parent4211eb8437e5708d9644ded1dd89c9cf526fbf92 (diff)
downloadscummvm-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.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui.cpp b/gui.cpp
index 49328b2a4b..8603bfa316 100644
--- a/gui.cpp
+++ b/gui.cpp
@@ -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);