diff options
author | Eugene Sandulenko | 2019-06-18 20:29:23 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:49 +0200 |
commit | b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f (patch) | |
tree | 79d0851ec341365b51cabd8f17d6b0d944e316e7 | |
parent | 89b19a1825691dd6177929096efa5aba0c6a2d9c (diff) | |
download | scummvm-rg350-b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f.tar.gz scummvm-rg350-b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f.tar.bz2 scummvm-rg350-b23906e11e5ea7e8ab9c51ef44aa28d2ba98f33f.zip |
HDB: Clip blitting properly
-rw-r--r-- | engines/hdb/draw-manager.cpp | 8 |
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()); } } |