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

sev at users.sourceforge.net sev at users.sourceforge.net
Fri Aug 3 23:09:41 CEST 2007


Revision: 28437
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28437&view=rev
Author:   sev
Date:     2007-08-03 14:09:41 -0700 (Fri, 03 Aug 2007)

Log Message:
-----------
Make resolution change in Lost in Time less wacky.

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 18:20:58 UTC (rev 28436)
+++ scummvm/trunk/engines/gob/inter_v2.cpp	2007-08-03 21:09:41 UTC (rev 28437)
@@ -1381,7 +1381,10 @@
 			width = _vm->_width = 640;
 			height = _vm->_height = 400;
 			_vm->_global->_colorCount = 16;
-			_vm->_system->initSize(_vm->_width, _vm->_height);
+			_vm->_system->beginGFXTransaction();
+				_vm->_system->initSize(_vm->_width, _vm->_height);
+				_vm->initCommonGFX(true);
+		   	_vm->_system->endGFXTransaction();
 		} else if (_vm->_global->_videoMode == 0x10) {
 			if (width == -1)
 				width = 320;
@@ -1391,7 +1394,10 @@
 			_vm->_width = 320;
 			_vm->_height = 200;
 			_vm->_global->_colorCount = 256;
-			_vm->_system->initSize(_vm->_width, _vm->_height);
+			_vm->_system->beginGFXTransaction();
+				_vm->_system->initSize(_vm->_width, _vm->_height);
+				_vm->initCommonGFX(false);
+			_vm->_system->endGFXTransaction();
 		}
 	}
 


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