aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-06-18 20:29:23 +0200
committerEugene Sandulenko2019-09-03 17:16:49 +0200
commitb23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f (patch)
tree79d0851ec341365b51cabd8f17d6b0d944e316e7 /engines
parent89b19a1825691dd6177929096efa5aba0c6a2d9c (diff)
downloadscummvm-rg350-b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f.tar.gz
scummvm-rg350-b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f.tar.bz2
scummvm-rg350-b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f.zip
HDB: Clip blitting properly
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/draw-manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp
index b4152bb6b5..dfac7f9268 100644
--- a/engines/hdb/draw-manager.cpp
+++ b/engines/hdb/draw-manager.cpp
@@ -304,7 +304,7 @@ void Picture::draw(int x, int y) {
clip.moveTo(x, y);
clip.clip(g_hdb->_drawMan->_globalSurface.getBounds());
if (!clip.isEmpty()) {
- g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(x, y), g_hdb->_drawMan->_globalSurface.pitch, x, y, clip.width(), clip.height());
+ g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_drawMan->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height());
}
}
@@ -315,7 +315,7 @@ void Picture::drawMasked(int x, int y) {
clip.moveTo(x, y);
clip.clip(g_hdb->_drawMan->_globalSurface.getBounds());
if (!clip.isEmpty()) {
- g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(x, y), g_hdb->_drawMan->_globalSurface.pitch, x, y, clip.width(), clip.height());
+ g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_drawMan->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height());
}
}
@@ -350,7 +350,7 @@ void Tile::draw(int x, int y) {
clip.moveTo(x, y);
clip.clip(g_hdb->_drawMan->_globalSurface.getBounds());
if (!clip.isEmpty()) {
- g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(x, y), g_hdb->_drawMan->_globalSurface.pitch, x, y, clip.width(), clip.height());
+ g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_drawMan->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height());
}
}
@@ -361,7 +361,7 @@ void Tile::drawMasked(int x, int y) {
clip.moveTo(x, y);
clip.clip(g_hdb->_drawMan->_globalSurface.getBounds());
if (!clip.isEmpty()) {
- g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(x, y), g_hdb->_drawMan->_globalSurface.pitch, x, y, clip.width(), clip.height());
+ g_system->copyRectToScreen(g_hdb->_drawMan->_globalSurface.getBasePtr(clip.left, clip.top), g_hdb->_drawMan->_globalSurface.pitch, clip.left, clip.top, clip.width(), clip.height());
}
}