Some more dirty rectangle fixes (some glitches still remain)

svn-id: r35294
This commit is contained in:
Filippos Karapetis 2008-12-09 21:09:45 +00:00
parent cabfbb4903
commit 5f4518a2ad
2 changed files with 3 additions and 1 deletions

View file

@ -230,7 +230,8 @@ void Render::restoreChangedRects() {
Common::List<Common::Rect>::const_iterator it;
for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
//_backGroundSurface.frameRect(*it, 1); // DEBUG
g_system->copyRectToScreen((byte *)_backGroundSurface.pixels, _backGroundSurface.w, it->left, it->top, it->width(), it->height());
if (it->bottom <= _vm->_scene->getHeight())
g_system->copyRectToScreen((byte *)_backGroundSurface.pixels, _backGroundSurface.w, it->left, it->top, it->width(), it->height());
}
}
_dirtyRects.clear();