Some more dirty rectangle fixes (some glitches still remain)
svn-id: r35294
This commit is contained in:
parent
cabfbb4903
commit
5f4518a2ad
2 changed files with 3 additions and 1 deletions
|
@ -379,6 +379,7 @@ int Interface::activate() {
|
||||||
}
|
}
|
||||||
_vm->_gfx->showCursor(true);
|
_vm->_gfx->showCursor(true);
|
||||||
draw();
|
draw();
|
||||||
|
_vm->_render->setFullRefresh(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
|
|
@ -230,7 +230,8 @@ void Render::restoreChangedRects() {
|
||||||
Common::List<Common::Rect>::const_iterator it;
|
Common::List<Common::Rect>::const_iterator it;
|
||||||
for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
|
for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
|
||||||
//_backGroundSurface.frameRect(*it, 1); // DEBUG
|
//_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();
|
_dirtyRects.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue