[Scummvm-cvs-logs] SF.net SVN: scummvm: [22403] scummvm/trunk/engines/kyra/animator.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed May 10 13:32:01 CEST 2006


Revision: 22403
Author:   lordhoto
Date:     2006-05-10 13:30:58 -0700 (Wed, 10 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22403&view=rev

Log Message:
-----------
Adds workaround for bug # 1477364 ("KYRA1: Water dripping freezes") until a proper solution is found.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/animator.cpp
Modified: scummvm/trunk/engines/kyra/animator.cpp
===================================================================
--- scummvm/trunk/engines/kyra/animator.cpp	2006-05-10 20:28:27 UTC (rev 22402)
+++ scummvm/trunk/engines/kyra/animator.cpp	2006-05-10 20:30:58 UTC (rev 22403)
@@ -206,6 +206,13 @@
 
 	if (restore) {
 		_screen->copyBlockToPage(_screen->_curPage, x << 3, y, width << 3, height, obj->background);
+		// workaround for bug # 1477364 ("KYRA1: Water dripping freezes")
+		// the problem is that the restored area to the 'backbuffer' (screen page 2)
+		// isn't updated on the front buffer in that special scene, so we update
+		// the frontbuffer (screen page 0) too if the object get's redrawn this time
+		if (obj->refreshFlag) {
+			_screen->copyBlockToPage(0, x << 3, y, width << 3, height, obj->background);
+		}
 	} else {
 		_screen->copyRegionToBuffer(_screen->_curPage, x << 3, y, width << 3, height, obj->background);
 	}


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