[Scummvm-cvs-logs] SF.net SVN: scummvm:[51282] scummvm/trunk/engines/sci/graphics/frameout.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Sun Jul 25 21:56:45 CEST 2010
Revision: 51282
http://scummvm.svn.sourceforge.net/scummvm/?rev=51282&view=rev
Author: m_kiewitz
Date: 2010-07-25 19:56:44 +0000 (Sun, 25 Jul 2010)
Log Message:
-----------
SCI: blacking out planes that got deleted
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/frameout.cpp
Modified: scummvm/trunk/engines/sci/graphics/frameout.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/frameout.cpp 2010-07-25 19:47:12 UTC (rev 51281)
+++ scummvm/trunk/engines/sci/graphics/frameout.cpp 2010-07-25 19:56:44 UTC (rev 51282)
@@ -104,6 +104,18 @@
for (PlaneList::iterator it = _planes.begin(); it != _planes.end(); it++) {
if (it->object == object) {
_planes.erase(it);
+ Common::Rect planeRect;
+ planeRect.top = readSelectorValue(_segMan, object, SELECTOR(top));
+ planeRect.left = readSelectorValue(_segMan, object, SELECTOR(left));
+ planeRect.bottom = readSelectorValue(_segMan, object, SELECTOR(bottom)) + 1;
+ planeRect.right = readSelectorValue(_segMan, object, SELECTOR(right)) + 1;
+
+ planeRect.top = (planeRect.top * _screen->getHeight()) / scriptsRunningHeight;
+ planeRect.left = (planeRect.left * _screen->getWidth()) / scriptsRunningWidth;
+ planeRect.bottom = (planeRect.bottom * _screen->getHeight()) / scriptsRunningHeight;
+ planeRect.right = (planeRect.right * _screen->getWidth()) / scriptsRunningWidth;
+ // Blackout removed plane rect
+ _paint32->fillRect(planeRect, 0);
return;
}
}
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