aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2008-12-11 13:44:58 +0000
committerJohannes Schickel2008-12-11 13:44:58 +0000
commit30507498b0bf30c7bd6bfb20767979470b30b7ae (patch)
tree3c7da8d5aeb537cce2fc505699e4e362d10296e6 /engines
parent9a3a04f6dd8456f20298f157f7ea9c0f36e8127d (diff)
downloadscummvm-rg350-30507498b0bf30c7bd6bfb20767979470b30b7ae.tar.gz
scummvm-rg350-30507498b0bf30c7bd6bfb20767979470b30b7ae.tar.bz2
scummvm-rg350-30507498b0bf30c7bd6bfb20767979470b30b7ae.zip
Midi code now allows volume values to be [0, 256] instead of [0, 255] like before, thus removed the clipping the old code used.
svn-id: r35302
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/sound_midi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound_midi.cpp b/engines/kyra/sound_midi.cpp
index 7ff47af3cc..6e56ba0bc8 100644
--- a/engines/kyra/sound_midi.cpp
+++ b/engines/kyra/sound_midi.cpp
@@ -532,8 +532,8 @@ void SoundMidiPC::updateVolumeSettings() {
if (!_output)
return;
- uint8 newMusVol = CLIP(ConfMan.getInt("music_volume"), 0, 255);
- _sfxVolume = CLIP(ConfMan.getInt("sfx_volume"), 0, 255);
+ uint8 newMusVol = ConfMan.getInt("music_volume");
+ _sfxVolume = ConfMan.getInt("sfx_volume");
_output->setSourceVolume(0, newMusVol, newMusVol != _musicVolume);
_musicVolume = newMusVol;