aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/render.cpp')
-rw-r--r--engines/saga/render.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/saga/render.cpp b/engines/saga/render.cpp
index 599fde20e5..f432dbd304 100644
--- a/engines/saga/render.cpp
+++ b/engines/saga/render.cpp
@@ -220,8 +220,8 @@ void Render::addDirtyRect(Common::Rect rect) {
if (x2 > x1 && y2 > y1) {
Common::Rect rectClipped(x1, y1, x2, y2);
// Check if the new rectangle is contained within another in the list
- Common::List<Common::Rect>::const_iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ Common::List<Common::Rect>::const_iterator it;
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
if (it->contains(rectClipped))
return;
if (rectClipped.contains(*it)) {
@@ -236,8 +236,8 @@ void Render::addDirtyRect(Common::Rect rect) {
void Render::restoreChangedRects() {
if (!_fullRefresh) {
- Common::List<Common::Rect>::const_iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ Common::List<Common::Rect>::const_iterator it;
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
//_backGroundSurface.frameRect(*it, 1); // DEBUG
if (_vm->_interface->getFadeMode() != kFadeOut)
g_system->copyRectToScreen(_vm->_gfx->getBackBufferPixels(), _backGroundSurface.w, it->left, it->top, it->width(), it->height());
@@ -248,8 +248,8 @@ void Render::restoreChangedRects() {
void Render::drawDirtyRects() {
if (!_fullRefresh) {
- Common::List<Common::Rect>::const_iterator it;
- for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
+ Common::List<Common::Rect>::const_iterator it;
+ for (it = _dirtyRects.begin(); it != _dirtyRects.end(); ++it) {
//_backGroundSurface.frameRect(*it, 2); // DEBUG
if (_vm->_interface->getFadeMode() != kFadeOut)
g_system->copyRectToScreen(_vm->_gfx->getBackBufferPixels(), _backGroundSurface.w, it->left, it->top, it->width(), it->height());