aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak2019-06-17 23:56:51 +0200
committerFilippos Karapetis2019-06-18 02:13:05 +0300
commit06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a (patch)
treedcf0686a38499a480c7047e481b8f2b7d6d9cfa5 /engines/sludge
parent5613caf32245653e276dbc60824c86f330b6d235 (diff)
downloadscummvm-rg350-06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a.tar.gz
scummvm-rg350-06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a.tar.bz2
scummvm-rg350-06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a.zip
SLUDGE: fix background position not taking camera into account
When a game sets camera position with aimCamera, the background should move together with all the objects above it.
Diffstat (limited to 'engines/sludge')
-rw-r--r--engines/sludge/backdrop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp
index 0e41230f36..610a84a2a4 100644
--- a/engines/sludge/backdrop.cpp
+++ b/engines/sludge/backdrop.cpp
@@ -367,7 +367,7 @@ void GraphicsManager::drawBackDrop() {
return;
// draw backdrop
Graphics::TransparentSurface tmp(_backdropSurface, false);
- tmp.blit(_renderSurface, 0, 0);
+ tmp.blit(_renderSurface, -_cameraX, -_cameraY);
}
bool GraphicsManager::loadLightMap(int v) {