aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2013-03-10 22:09:29 -0400
committerPaul Gilbert2013-03-10 22:09:29 -0400
commite50a7be7defca39b89941a7bade023db87e6bf01 (patch)
tree3d3d7e8fe0e27d32e3af2a355a10ed53e8bfed09 /engines/hopkins/graphics.cpp
parent2d83249ac2105ff9ce803becd4bb6f1688de3df8 (diff)
downloadscummvm-rg350-e50a7be7defca39b89941a7bade023db87e6bf01.tar.gz
scummvm-rg350-e50a7be7defca39b89941a7bade023db87e6bf01.tar.bz2
scummvm-rg350-e50a7be7defca39b89941a7bade023db87e6bf01.zip
HOPKINS: Further fix for dirty area display in-game
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r--engines/hopkins/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index af142ac2c3..bad67603c5 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -438,7 +438,7 @@ void GraphicsManager::m_scroll16(const byte *surface, int xs, int ys, int width,
}
unlockScreen();
- addRefreshRect(xs, ys, xs + width, ys + height);
+ addRefreshRect(destX, destY, destX + width, destY + height);
}
// TODO: See if PAL_PIXELS can be converted to a uint16 array
@@ -498,7 +498,7 @@ void GraphicsManager::m_scroll16A(const byte *surface, int xs, int ys, int width
yNext = yCtr - 1;
} while (yCtr != 1);
- addRefreshRect(xs, ys, xs + width, ys + width);
+ addRefreshRect(destX, destY, destX + width, destY + width);
}
void GraphicsManager::Copy_Vga16(const byte *surface, int xp, int yp, int width, int height, int destX, int destY) {
@@ -537,7 +537,7 @@ void GraphicsManager::Copy_Vga16(const byte *surface, int xp, int yp, int width,
yCount = yCtr - 1;
} while (yCtr != 1);
- addRefreshRect(xp, yp, xp + width, yp + width);
+ addRefreshRect(destX, destY, destX + width, destY + width);
}
/**