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 /sound/imuse.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 'sound/imuse.cpp')
-rw-r--r-- | sound/imuse.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/imuse.cpp b/sound/imuse.cpp index 677a5c79f2..8e0e99e099 100644 --- a/sound/imuse.cpp +++ b/sound/imuse.cpp @@ -1255,6 +1255,9 @@ int IMuseInternal::get_music_volume() int IMuseInternal::set_music_volume(uint vol) { + // recalibrate from 0-255 range + vol = vol * 100 / 255; + if (vol > 100) vol = 100; else if (vol < 1) @@ -1267,6 +1270,10 @@ int IMuseInternal::set_music_volume(uint vol) int IMuseInternal::set_master_volume(uint vol) { int i; + + // recalibrate from 0-255 range + vol = vol * 127 / 255; + if (vol > 127) return -1; |