[Scummvm-cvs-logs] CVS: scummvm/gui newgui.cpp,1.101,1.102

Eugene Sandulenko sev at users.sourceforge.net
Wed Mar 9 15:07:59 CET 2005


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

Modified Files:
	newgui.cpp 
Log Message:
Patch #1013937 "OSystem layer with bigger resolution". Now you will always
get at least 640x400 window. And finally we have means of implementing
nice looking GUI.

Also updated all backends. If your backend has ability to run with 640x400 or
640x480 resolution then read patch tracker item to find out details. Other
port maintainers shouldn't worry, as this patch doesn't affect them, they
still get their 320x200.


Index: newgui.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/newgui.cpp,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- newgui.cpp	10 Jan 2005 22:05:38 -0000	1.101
+++ newgui.cpp	9 Mar 2005 23:07:31 -0000	1.102
@@ -85,7 +85,7 @@
 		kDefaultGUIHeight = 200
 	};
 
-	_scaleFactor = MIN(_system->getWidth() / kDefaultGUIWidth, _system->getHeight() / kDefaultGUIHeight);
+	_scaleFactor = MIN(_system->getOverlayWidth() / kDefaultGUIWidth, _system->getOverlayHeight() / kDefaultGUIHeight);
 
 	// Pick the font depending on the scale factor.
 	if (_scaleFactor == 1)





More information about the Scummvm-git-logs mailing list