From a8a8624511f280ea1fdc9bb4bde4f79477b76ae1 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 8 Mar 2006 01:42:02 +0000 Subject: o Converted most (all?) widgets to new scheme. o Converted global options dialog to new scheme. svn-id: r21137 --- engines/scumm/dialogs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/scumm/dialogs.cpp') diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp index 2331231285..4e1e4c303e 100644 --- a/engines/scumm/dialogs.cpp +++ b/engines/scumm/dialogs.cpp @@ -693,15 +693,18 @@ ConfigDialog::ConfigDialog(ScummEngine *scumm) GUI::WidgetSize ws; int buttonWidth; int buttonHeight; + int sliderHeight; if (screenW >= 400 && screenH >= 300) { ws = GUI::kBigWidgetSize; buttonWidth = kBigButtonWidth; buttonHeight = kBigButtonHeight; + sliderHeight = GUI::kBigSliderHeight; } else { ws = GUI::kNormalWidgetSize; buttonWidth = kButtonWidth; buttonHeight = kButtonHeight; + sliderHeight = GUI::kSliderHeight; } int yoffset = 8; @@ -710,7 +713,8 @@ ConfigDialog::ConfigDialog(ScummEngine *scumm) // Sound controllers // - yoffset = addVolumeControls(this, yoffset, ws) + 4; + addVolumeControls(this, "scummoptions_"); + yoffset += (sliderHeight + 4) * 8; // // Some misc options -- cgit v1.2.3