From 06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Mon, 17 Jun 2019 23:56:51 +0200 Subject: 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. --- engines/sludge/backdrop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3