diff options
author | Sebastian Krzyszkowiak | 2019-06-17 23:56:51 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-06-18 02:13:05 +0300 |
commit | 06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a (patch) | |
tree | dcf0686a38499a480c7047e481b8f2b7d6d9cfa5 /engines/sludge/backdrop.cpp | |
parent | 5613caf32245653e276dbc60824c86f330b6d235 (diff) | |
download | scummvm-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/backdrop.cpp')
-rw-r--r-- | engines/sludge/backdrop.cpp | 2 |
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) { |