[Scummvm-cvs-logs] CVS: scummvm/gui options.cpp,1.78,1.79 launcher.cpp,1.116,1.117

Max Horn fingolfin at users.sourceforge.net
Sun May 15 17:40:13 CEST 2005


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

Modified Files:
	options.cpp launcher.cpp 
Log Message:
Enlarge the option dialogs; note that the widgets should be rearranged / enlarged, too; they aren't yet

Index: options.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/options.cpp,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- options.cpp	10 May 2005 23:48:37 -0000	1.78
+++ options.cpp	16 May 2005 00:38:30 -0000	1.79
@@ -435,6 +435,12 @@
 GlobalOptionsDialog::GlobalOptionsDialog()
 	: OptionsDialog(Common::ConfigManager::kApplicationDomain, 10, 20, 320 - 2 * 10, 200 - 1 * 20) {
 
+	const int screenW = g_system->getOverlayWidth();
+	const int screenH = g_system->getOverlayHeight();
+	
+	_w = screenW - 2 * 10;
+	_h = screenH - 1 * 20;
+
 	const int vBorder = 4;
 	int yoffset;
 

Index: launcher.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/launcher.cpp,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- launcher.cpp	16 May 2005 00:26:23 -0000	1.116
+++ launcher.cpp	16 May 2005 00:38:30 -0000	1.117
@@ -137,6 +137,12 @@
 EditGameDialog::EditGameDialog(const String &domain, GameSettings target)
 	: OptionsDialog(domain, 10, 40, 320 - 2 * 10, 140) {
 
+	const int screenW = g_system->getOverlayWidth();
+	const int screenH = g_system->getOverlayHeight();
+	
+	_w = screenW - 2 * 10;
+	_h = screenH - 2 * 40;	// TODO/FIXME
+	
 	const int x = 5;
 	const int w = _w - 15;
 	const int labelWidth = 65;





More information about the Scummvm-git-logs mailing list