[Scummvm-cvs-logs] CVS: scummvm/gui launcher.cpp,1.128,1.129

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Thu Aug 18 17:24:12 CEST 2005


Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11639

Modified Files:
	launcher.cpp 
Log Message:
I forgot there were path buttons in this file. They, too, need to be wider
to avoid truncating the text in the smaller version of the GUI.


Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- launcher.cpp	10 Aug 2005 18:30:55 -0000	1.128
+++ launcher.cpp	18 Aug 2005 15:21:58 -0000	1.129
@@ -222,13 +222,16 @@
 	tab->addTab("Paths");
 	yoffset = vBorder;
 
+	// These buttons have to be extra wide, or the text will be truncated
+	// in the small version of the GUI.
+
 	// GUI:  Button + Label for the game path
-	addButton(tab, x, yoffset, "Game Path:", kCmdGameBrowser, 0, ws);
+	new ButtonWidget(tab, x, yoffset, buttonWidth + 5, buttonHeight, "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 + 4;
 
 	// GUI:  Button + Label for the additional path
-	addButton(tab, x, yoffset, "Extra Path:", kCmdExtraBrowser, 0, ws);
+	new ButtonWidget(tab, x, yoffset, buttonWidth + 5, buttonHeight, "Extra Path:", kCmdExtraBrowser, 0, ws);
 	_extraPathWidget = new StaticTextWidget(tab, x + buttonWidth + 20, yoffset + 3, _w - (x + buttonWidth + 20) - 10, kLineHeight, extraPath, kTextAlignLeft, ws);
 	if (extraPath.isEmpty() || !ConfMan.hasKey("extrapath", _domain)) {
 		_extraPathWidget->setLabel("None");
@@ -236,7 +239,7 @@
 	yoffset += buttonHeight + 4;
 
 	// GUI:  Button + Label for the save path
-	addButton(tab, x, yoffset, "Save Path:", kCmdSaveBrowser, 0, ws);
+	new ButtonWidget(tab, x, yoffset, buttonWidth + 5, buttonHeight, "Save Path: ", kCmdSaveBrowser, 0, ws);
 	_savePathWidget = new StaticTextWidget(tab, x + buttonWidth + 20, yoffset + 3, _w - (x + buttonWidth + 20) - 10, kLineHeight, savePath, kTextAlignLeft, ws);
 	if (savePath.isEmpty() || !ConfMan.hasKey("savepath", _domain)) {
 		_savePathWidget->setLabel("Default");





More information about the Scummvm-git-logs mailing list