[Scummvm-cvs-logs] SF.net SVN: scummvm: [28435] scummvm/trunk/engines/gob/inter_v2.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Fri Aug 3 19:51:37 CEST 2007


Revision: 28435
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28435&view=rev
Author:   drmccoy
Date:     2007-08-03 10:51:36 -0700 (Fri, 03 Aug 2007)

Log Message:
-----------
Lost in Time's title is shown correctly now.
The size switching looks a bit whacky, but that's what the game does :)

Modified Paths:
--------------
    scummvm/trunk/engines/gob/inter_v2.cpp

Modified: scummvm/trunk/engines/gob/inter_v2.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v2.cpp	2007-08-03 16:21:39 UTC (rev 28434)
+++ scummvm/trunk/engines/gob/inter_v2.cpp	2007-08-03 17:51:36 UTC (rev 28435)
@@ -1375,12 +1375,30 @@
 	width = _vm->_parse->parseValExpr();
 	height = _vm->_parse->parseValExpr();
 
-	_vm->_global->_colorCount = (videoMode == 0x10) ? 16 : 256;
+	// Lost in Time switches to 640x400x16 when showing the title screen
+	if (_vm->getGameType() == kGameTypeLostInTime) {
+		if (videoMode == 0x10) {
+			width = _vm->_width = 640;
+			height = _vm->_height = 400;
+			_vm->_global->_colorCount = 16;
+			_vm->_system->initSize(_vm->_width, _vm->_height);
+		} else if (_vm->_global->_videoMode == 0x10) {
+			if (width == -1)
+				width = 320;
+			if (height == -1)
+				height = 200;
 
+			_vm->_width = 320;
+			_vm->_height = 200;
+			_vm->_global->_colorCount = 256;
+			_vm->_system->initSize(_vm->_width, _vm->_height);
+		}
+	}
+
 	_vm->_global->_fakeVideoMode = videoMode;
 
 	// Some versions require this
-	if ((videoMode == 0xD))// || (videoMode == 0x10))
+	if (videoMode == 0xD)
 		videoMode = _vm->_mode;
 
 	if ((videoMode == _vm->_global->_videoMode) && (width == -1))


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list