From dbd7fdd46bca56e9f77cfb689e6bb193fd9c6c3e Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 17 Aug 2005 20:29:21 +0000 Subject: Made the path buttons extra wide so that the text is not truncated in the smaller version of the GUI. svn-id: r18701 --- gui/options.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/options.cpp b/gui/options.cpp index 8e1af7fc35..1b1a1304ad 100644 --- a/gui/options.cpp +++ b/gui/options.cpp @@ -546,12 +546,15 @@ GlobalOptionsDialog::GlobalOptionsDialog() yoffset = vBorder; #if !( defined(__DC__) || defined(__GP32__) ) + // These two buttons have to be extra wide, or the text will be + // truncated in the small version of the GUI. + // Save game path - addButton(tab, 5, yoffset, "Save Path: ", kChooseSaveDirCmd, 0, ws); + new ButtonWidget(tab, 5, yoffset, buttonWidth + 5, buttonHeight, "Save Path: ", kChooseSaveDirCmd, 0, ws); _savePath = new StaticTextWidget(tab, 5 + buttonWidth + 20, yoffset + 3, _w - (5 + buttonWidth + 20) - 10, kLineHeight, "/foo/bar", kTextAlignLeft, ws); yoffset += buttonHeight + 4; - addButton(tab, 5, yoffset, "Extra Path:", kChooseExtraDirCmd, 0, ws); + new ButtonWidget(tab, 5, yoffset, buttonWidth + 5, buttonHeight, "Extra Path:", kChooseExtraDirCmd, 0, ws); _extraPath = new StaticTextWidget(tab, 5 + buttonWidth + 20, yoffset + 3, _w - (5 + buttonWidth + 20) - 10, kLineHeight, "None", kTextAlignLeft, ws); yoffset += buttonHeight + 4; #endif -- cgit v1.2.3