aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-05-19 13:10:57 +0000
committerTorbjörn Andersson2005-05-19 13:10:57 +0000
commit7d0d766988f68a8ab176d859f79467af414f5d87 (patch)
tree2ccafea4568b083b887a14500fbfa67a80622f3c /gui/launcher.cpp
parentda9eaffd506aaee626ec2937c97a0f706f0b13cb (diff)
downloadscummvm-rg350-7d0d766988f68a8ab176d859f79467af414f5d87.tar.gz
scummvm-rg350-7d0d766988f68a8ab176d859f79467af414f5d87.tar.bz2
scummvm-rg350-7d0d766988f68a8ab176d859f79467af414f5d87.zip
More scaling work. It's still more about infrastructure than layout: I want
to give each widget the opportunity to scale itself. There's a slight regression this time, though: In the small version of the GUI, some of the buttons (e.g. "SoundFont") have their text truncated. Not good. svn-id: r18182
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 0d79eea04c..19750361d0 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -143,7 +143,6 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
const int screenH = g_system->getOverlayHeight();
_w = screenW - 2 * 10;
- _h = screenH - 2 * 40; // TODO/FIXME
GUI::WidgetSize ws;
int buttonHeight;
@@ -151,10 +150,12 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
if (screenW >= 400 && screenH >= 300) {
ws = GUI::kBigWidgetSize;
+ _h = screenH - 2 * 40; // TODO/FIXME
buttonHeight = kBigButtonHeight;
buttonWidth = kBigButtonWidth;
} else {
ws = GUI::kNormalWidgetSize;
+ _h = screenH - 2 * 30; // TODO/FIXME
buttonHeight = kButtonHeight;
buttonWidth = kButtonWidth;
}
@@ -222,7 +223,7 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
// GUI: Button + Label for the game path
addButton(tab, x, yoffset, "Game Path:", kCmdGameBrowser, 0, ws);
_gamePathWidget = new StaticTextWidget(tab, x + buttonWidth + 20, yoffset + 3, _w - (x + buttonWidth + 20) - 10, kLineHeight, gamePath, kTextAlignLeft, ws);
- yoffset += buttonHeight + 2;
+ yoffset += buttonHeight + 4;
// GUI: Button + Label for the additional path
addButton(tab, x, yoffset, "Extra Path:", kCmdExtraBrowser, 0, ws);
@@ -230,7 +231,7 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
if (extraPath.isEmpty() || !ConfMan.hasKey("extrapath", _domain)) {
_extraPathWidget->setLabel("None");
}
- yoffset += buttonHeight + 2;
+ yoffset += buttonHeight + 4;
// GUI: Button + Label for the save path
addButton(tab, x, yoffset, "Save Path:", kCmdSaveBrowser, 0, ws);
@@ -238,7 +239,7 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
if (savePath.isEmpty() || !ConfMan.hasKey("savepath", _domain)) {
_savePathWidget->setLabel("Default");
}
- yoffset += buttonHeight + 2;
+ yoffset += buttonHeight + 4;
//
// 3) The graphics tab