[Scummvm-cvs-logs] SF.net SVN: scummvm:[48786] scummvm/trunk/engines/sci/graphics/animate.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sat Apr 24 22:08:03 CEST 2010


Revision: 48786
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48786&view=rev
Author:   m_kiewitz
Date:     2010-04-24 20:08:03 +0000 (Sat, 24 Apr 2010)

Log Message:
-----------
SCI: beginUpdate()/endUpdate() of ports were introduced inside kAnimate() in SCI01 - fixes percentage bar not showing up in qfg1ega

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/animate.cpp

Modified: scummvm/trunk/engines/sci/graphics/animate.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/animate.cpp	2010-04-24 16:09:17 UTC (rev 48785)
+++ scummvm/trunk/engines/sci/graphics/animate.cpp	2010-04-24 20:08:03 UTC (rev 48786)
@@ -631,9 +631,14 @@
 	fill(old_picNotValid);
 
 	if (old_picNotValid) {
-		_ports->beginUpdate(_ports->_picWind);
+		// beginUpdate()/endUpdate() were introduced SCI01
+		//  calling those for SCI0 will work most of the time but breaks minor stuff like percentage bar of qfg1ega
+		//   at the character skill screen
+		if (getSciVersion() >= SCI_VERSION_01)
+			_ports->beginUpdate(_ports->_picWind);
 		update();
-		_ports->endUpdate(_ports->_picWind);
+		if (getSciVersion() >= SCI_VERSION_01)
+			_ports->endUpdate(_ports->_picWind);
 	}
 
 	drawCels();


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