[Scummvm-git-logs] scummvm master -> d10fb5f11b8ee7abd1fb9d4c877f7e283892cf4a

bluegr noreply at scummvm.org
Mon Jun 20 14:52:11 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d10fb5f11b CHEWY: Fix music and sound volume in options


Commit: d10fb5f11b8ee7abd1fb9d4c877f7e283892cf4a
    https://github.com/scummvm/scummvm/commit/d10fb5f11b8ee7abd1fb9d4c877f7e283892cf4a
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2022-06-20T17:51:51+03:00

Commit Message:
CHEWY: Fix music and sound volume in options

Changed paths:
    engines/chewy/dialogs/options.cpp


diff --git a/engines/chewy/dialogs/options.cpp b/engines/chewy/dialogs/options.cpp
index 3032118089a..d95075807b7 100644
--- a/engines/chewy/dialogs/options.cpp
+++ b/engines/chewy/dialogs/options.cpp
@@ -101,15 +101,16 @@ void Options::execute(TafInfo *ti) {
 				8 + ti->correction[(SCHNULL_BAND << 1) + 1], 0);
 		}
 
-		const int soundVolume = g_engine->_sound->getSoundVolume() * Audio::Mixer::kMaxChannelVolume / 2 * 120;
+		const int soundVolume = g_engine->_sound->getSoundVolume() * Audio::Mixer::kMaxChannelVolume / 120;
 		_G(out)->pop_box(32 - 2, 104 - 12, 42 + 4, 136 + 2, 192, 183, 182);
 		_G(out)->printxy(32 + 3, 104 - 10, 15, 300, 0, "S");
 		_G(out)->boxFill(33, 136 - (soundVolume >> 1), 42, 136, 15);
 
-		const int musicVolume = g_engine->_sound->getSoundVolume() * Audio::Mixer::kMaxChannelVolume / 2 * 120;
+		const int musicVolume = g_engine->_sound->getSoundVolume() * Audio::Mixer::kMaxChannelVolume / 120;
 		_G(out)->pop_box(52 - 2, 104 - 12, 62 + 4, 136 + 2, 192, 183, 182);
 		_G(out)->printxy(52 + 3, 104 - 10, 31, 300, 0, "M");
 		_G(out)->boxFill(53, 136 - (musicVolume >> 1), 62, 136, 31);
+
 		if (g_engine->_sound->musicEnabled()) {
 			_G(out)->spriteSet(ti->image[MUSIC_ON1],
 				18 + ti->correction[MUSIC_ON1 << 1],




More information about the Scummvm-git-logs mailing list