mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
Some more dirty rectangle fixes (some glitches still remain)
svn-id: r35294
This commit is contained in:
parent
cabfbb4903
commit
5f4518a2ad
@ -379,6 +379,7 @@ int Interface::activate() {
|
||||
}
|
||||
_vm->_gfx->showCursor(true);
|
||||
draw();
|
||||
_vm->_render->setFullRefresh(true);
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user