diff options
author | Max Horn | 2004-07-26 18:11:55 +0000 |
---|---|---|
committer | Max Horn | 2004-07-26 18:11:55 +0000 |
commit | 580870e9ba36125e24075874907572d1c109adad (patch) | |
tree | 76a3090b3e3ec7ab68fd88155c3bda00191992eb | |
parent | f045cbf17c8e489e37f9a2f5f72137e82c1c9a42 (diff) | |
download | scummvm-rg350-580870e9ba36125e24075874907572d1c109adad.tar.gz scummvm-rg350-580870e9ba36125e24075874907572d1c109adad.tar.bz2 scummvm-rg350-580870e9ba36125e24075874907572d1c109adad.zip |
Fix label width; properly distinguish between a global default extrapath/savepath, and a target specific one
svn-id: r14343
-rw-r--r-- | gui/launcher.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 50dd35bea0..fde75f08b4 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -174,21 +174,21 @@ EditGameDialog::EditGameDialog(const String &domain, GameSettings target) yoffset = vBorder; // GUI: Button + Label for the game path new ButtonWidget(tab, x, yoffset, kButtonWidth + 14, 16, "Game Path:", kCmdGameBrowser, 0); - _gamePathWidget = new StaticTextWidget(tab, x + kButtonWidth + 20, yoffset, _w - labelWidth - 10, kLineHeight, gamePath, kTextAlignLeft); + _gamePathWidget = new StaticTextWidget(tab, x + kButtonWidth + 20, yoffset + 3, _w - (x + kButtonWidth + 20) - 10, kLineHeight, gamePath, kTextAlignLeft); yoffset += 18; // GUI: Button + Label for the additional path new ButtonWidget(tab, x, yoffset, kButtonWidth + 14, 16, "Extra Path:", kCmdExtraBrowser, 0); - _extraPathWidget = new StaticTextWidget(tab, x + kButtonWidth + 20, yoffset, _w - labelWidth - 10, kLineHeight, extraPath, kTextAlignLeft); - if (extraPath.isEmpty()) { + _extraPathWidget = new StaticTextWidget(tab, x + kButtonWidth + 20, yoffset + 3, _w - (x + kButtonWidth + 20) - 10, kLineHeight, extraPath, kTextAlignLeft); + if (extraPath.isEmpty() || !ConfMan.hasKey("extrapath", _domain)) { _extraPathWidget->setLabel("None"); } yoffset += 18; // GUI: Button + Label for the save path new ButtonWidget(tab, x, yoffset, kButtonWidth + 14, 16, "Save Path:", kCmdSaveBrowser, 0); - _savePathWidget = new StaticTextWidget(tab, x + kButtonWidth + 20, yoffset, _w - labelWidth - 10, kLineHeight, savePath, kTextAlignLeft); - if (savePath.isEmpty()) { + _savePathWidget = new StaticTextWidget(tab, x + kButtonWidth + 20, yoffset + 3, _w - (x + kButtonWidth + 20) - 10, kLineHeight, savePath, kTextAlignLeft); + if (savePath.isEmpty() || !ConfMan.hasKey("savepath", _domain)) { _savePathWidget->setLabel("Default"); } yoffset += 18; |