aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2003-03-25 15:55:27 +0000
committerMax Horn2003-03-25 15:55:27 +0000
commitc40989548345e00e26b42be5acbe9d11f87685bb (patch)
treedb35c0bfbf5691beed56ec3ad65afd43335f0dc3 /gui
parent023d84a6a3fdecf97c7bebd754b72c044aa58955 (diff)
downloadscummvm-rg350-c40989548345e00e26b42be5acbe9d11f87685bb.tar.gz
scummvm-rg350-c40989548345e00e26b42be5acbe9d11f87685bb.tar.bz2
scummvm-rg350-c40989548345e00e26b42be5acbe9d11f87685bb.zip
make the volume controls in the global options dialog work
svn-id: r6863
Diffstat (limited to 'gui')
-rw-r--r--gui/options.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 14cf1d90b3..17cb2992e5 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -127,11 +127,11 @@ GlobalOptionsDialog::GlobalOptionsDialog(NewGui *gui, GameDetector &detector)
if (dir) {
_savePath->setLabel(dir);
} else {
+ // Default to the current directory...
char buf[256];
getcwd(buf, sizeof(buf));
_savePath->setLabel(buf);
}
-// If that is NULL, we should use the current directory...
//
// Add OK & Cancel buttons
@@ -191,6 +191,9 @@ void GlobalOptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint3
case kOKCmd:
// TODO Write back changes made to config object
setResult(1);
+ _detector._master_volume = _soundVolumeMaster;
+ _detector._music_volume = _soundVolumeMusic;
+ _detector._sfx_volume = _soundVolumeSfx;
close();
break;
default: