[Scummvm-git-logs] scummvm master -> 06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a

bluegr bluegr at gmail.com
Tue Jun 18 01:13:09 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
06e1d6808f SLUDGE: fix background position not taking camera into account


Commit: 06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a
    https://github.com/scummvm/scummvm/commit/06e1d6808f2fb1874be08d1ea5f12c82e15b9e0a
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2019-06-18T02:13:05+03:00

Commit Message:
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.

Changed paths:
    engines/sludge/backdrop.cpp


diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp
index 0e41230..610a84a 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) {





More information about the Scummvm-git-logs mailing list