[Scummvm-cvs-logs] SF.net SVN: scummvm:[39923] scummvm/trunk/engines/saga/render.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sat Apr 11 02:30:11 CEST 2009
Revision: 39923
http://scummvm.svn.sourceforge.net/scummvm/?rev=39923&view=rev
Author: fingolfin
Date: 2009-04-11 00:30:11 +0000 (Sat, 11 Apr 2009)
Log Message:
-----------
SAGA: Fix yet another mistake in the revised dirty rect code *sigh*
Modified Paths:
--------------
scummvm/trunk/engines/saga/render.cpp
Modified: scummvm/trunk/engines/saga/render.cpp
===================================================================
--- scummvm/trunk/engines/saga/render.cpp 2009-04-11 00:29:52 UTC (rev 39922)
+++ scummvm/trunk/engines/saga/render.cpp 2009-04-11 00:30:11 UTC (rev 39923)
@@ -220,7 +220,7 @@
// Check if the new rectangle is contained within another in the list
Common::List<Common::Rect>::iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ) {
// If we find a rectangle which fully contains the new one,
// we can abort the search.
if (it->contains(r))
@@ -229,7 +229,7 @@
// Conversely, if we find rectangles which are contained in
// the new one, we can remove them
if (r.contains(*it))
- _dirtyRects.erase(it);
+ it = _dirtyRects.erase(it);
else
++it;
}
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