[Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.136,1.137

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


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

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

Index: dialogs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -d -r1.136 -r1.137
--- dialogs.cpp	15 May 2005 18:02:28 -0000	1.136
+++ dialogs.cpp	16 May 2005 00:38:30 -0000	1.137
@@ -543,13 +543,20 @@
 	kKeysCmd = 'KEYS'
 };
 
-#ifndef _WIN32_WCE
 ConfigDialog::ConfigDialog(ScummEngine *scumm)
 	: GUI::OptionsDialog("", 40, 30, 240, 124), _vm(scumm) {
-#else
-ConfigDialog::ConfigDialog(ScummEngine *scumm)
-	: GUI::OptionsDialog("", 40, 30, 240, 124 + 4), _vm(scumm) {
+
+	const int screenW = g_system->getOverlayWidth();
+	const int screenH = g_system->getOverlayHeight();
+
+	_w = screenW - 2 * 40;
+	_h = screenH - 2 * 30 - 16;
+
+#ifdef _WIN32_WCE
+	_h += 4;
 #endif
+	
+
 	//
 	// Add the buttons
 	//





More information about the Scummvm-git-logs mailing list