[Scummvm-cvs-logs] SF.net SVN: scummvm:[45526] scummvm/trunk/engines/sci/gui/gui_animate.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Oct 30 09:22:54 CET 2009


Revision: 45526
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45526&view=rev
Author:   thebluegr
Date:     2009-10-30 08:22:53 +0000 (Fri, 30 Oct 2009)

Log Message:
-----------
Started porting ReAnimate() from Greg's SCI engine

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui_animate.cpp

Modified: scummvm/trunk/engines/sci/gui/gui_animate.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_animate.cpp	2009-10-30 07:26:43 UTC (rev 45525)
+++ scummvm/trunk/engines/sci/gui/gui_animate.cpp	2009-10-30 08:22:53 UTC (rev 45526)
@@ -477,6 +477,38 @@
 void SciGuiAnimate::reAnimate(Common::Rect rect) {
 	// TODO: implement ReAnimate
 	_gfx->BitsShow(rect);
+
+	/*
+	_s->_gui->localToGlobal(rect.left, rect.top);
+	_s->_gui->localToGlobal(rect.right, rect.bottom);
+	GuiPort *oldPort = _gfx->SetPort((GuiPort *)_picWind);
+	_s->_gui->globalToLocal(rect.left, rect.top);
+	_s->_gui->globalToLocal(rect.right, rect.bottom);
+
+	if (!_lastCast->isEmpty()) {
+		HEAPHANDLE hnode = _lastCast->getFirst();
+		sciCast *pCast;
+		CResView *res;
+		while (hnode) {
+			pCast = (sciCast *)heap2Ptr(hnode);
+			res = (CResView *)ResMgr.ResLoad(SCI_RES_VIEW, pCast->view);
+			pCast->hSaved = _gfx->SaveBits(pCast->rect, 3);
+			res->drawCel(pCast->loop, pCast->cel, &pCast->rect, pCast->z, pCast->pal);
+			hnode = pCast->node.next;
+		}
+		_gfx->BitsShow(rect);
+		// restoring
+		hnode = _lastCast->getLast();
+		while (hnode) {
+			pCast = (sciCast *)heap2Ptr(hnode);
+			_gfx->BitsShow(pCast->hSaved);
+			hnode = pCast->node.prev;
+		}
+	} else
+		_gfx->BitsShow(rect);
+
+	_gfx->SetPort(oldPort);
+	*/
 }
 
 void SciGuiAnimate::addToPicDrawCels() {


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