diff options
| author | Paul Gilbert | 2016-02-05 19:31:35 -0500 |
|---|---|---|
| committer | Paul Gilbert | 2016-02-05 19:31:35 -0500 |
| commit | 456e5956e09406dc618ab49518dd83dec0e59641 (patch) | |
| tree | ed14254f19aafa2ebaa97328e6cad188db81b481 /engines/sherlock/tattoo | |
| parent | bb9052bf6f9a566c9862d97f25f38eba93062010 (diff) | |
| download | scummvm-rg350-456e5956e09406dc618ab49518dd83dec0e59641.tar.gz scummvm-rg350-456e5956e09406dc618ab49518dd83dec0e59641.tar.bz2 scummvm-rg350-456e5956e09406dc618ab49518dd83dec0e59641.zip | |
SHERLOCK: RT: Properly hook up volume and mute toggles in Options dialog
Diffstat (limited to 'engines/sherlock/tattoo')
| -rw-r--r-- | engines/sherlock/tattoo/widget_options.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/sherlock/tattoo/widget_options.cpp b/engines/sherlock/tattoo/widget_options.cpp index 5dc6fc55b9..92bd10bbf6 100644 --- a/engines/sherlock/tattoo/widget_options.cpp +++ b/engines/sherlock/tattoo/widget_options.cpp @@ -130,10 +130,9 @@ void WidgetOptions::handleEvents() { else if (_digiSliderX > _bounds.width() - _surface.widestChar()) _digiSliderX = _bounds.width() - _surface.widestChar(); - int temp = sound._soundVolume; - sound._soundVolume = (_digiSliderX - _surface.widestChar()) * 255 / (_bounds.width() - _surface.widestChar() * 2); - if (sound._soundVolume != temp) { - sound.setVolume(sound._soundVolume); + int newVolume = (_digiSliderX - _surface.widestChar()) * 255 / (_bounds.width() - _surface.widestChar() * 2); + if (newVolume != sound._soundVolume) { + sound.setVolume(newVolume); vm.saveConfig(); } @@ -188,7 +187,7 @@ void WidgetOptions::handleEvents() { case 5: // Toggle Voices - sound._voices = !sound._voices; + sound._speechOn = !sound._speechOn; render(OP_NAMES); vm.saveConfig(); @@ -326,7 +325,7 @@ void WidgetOptions::render(OptionRenderMode mode) { break; case 5: - str = Common::String::format("%s %s", FIXED(Voices), OFF_ON[sound._voices]); + str = Common::String::format("%s %s", FIXED(Voices), OFF_ON[sound._speechOn]); break; case 6: { |
