[Scummvm-cvs-logs] CVS: scummvm/gui options.cpp,1.94,1.95

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Thu Aug 18 14:50:22 CEST 2005


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

Modified Files:
	options.cpp 
Log Message:
Made the path buttons extra wide so that the text is not truncated in the
smaller version of the GUI.


Index: options.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/options.cpp,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- options.cpp	10 Aug 2005 18:30:55 -0000	1.94
+++ options.cpp	17 Aug 2005 20:29:21 -0000	1.95
@@ -546,12 +546,15 @@
 	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





More information about the Scummvm-git-logs mailing list