[Scummvm-git-logs] scummvm master -> 541badba9e08db47773a0df4f29999b71d228cb2

digitall noreply at scummvm.org
Sun Apr 7 17:55:39 UTC 2024


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:
541badba9e MOHAWK: Expand Myst ME (Polish) Map Color Fix To All Stack Maps


Commit: 541badba9e08db47773a0df4f29999b71d228cb2
    https://github.com/scummvm/scummvm/commit/541badba9e08db47773a0df4f29999b71d228cb2
Author: D G Turner (digitall at scummvm.org)
Date: 2024-04-07T18:54:20+01:00

Commit Message:
MOHAWK: Expand Myst ME (Polish) Map Color Fix To All Stack Maps

Changed paths:
    engines/mohawk/myst_graphics.cpp


diff --git a/engines/mohawk/myst_graphics.cpp b/engines/mohawk/myst_graphics.cpp
index a66d36d9705..1ce4b7d5fb2 100644
--- a/engines/mohawk/myst_graphics.cpp
+++ b/engines/mohawk/myst_graphics.cpp
@@ -22,6 +22,7 @@
 #include "mohawk/myst.h"
 #include "mohawk/myst_graphics.h"
 #include "mohawk/resource.h"
+#include "mohawk/myst_scripts.h"
 
 #include "common/substream.h"
 #include "common/system.h"
@@ -225,7 +226,8 @@ void MystGraphics::applyImagePatches(uint16 id, const MohawkSurface *mhkSurface)
 	}
 
 	// Fix map picture with inverted colors in Myst ME Polish version
-	if (id == 9934 && _vm->isGameVariant(GF_ME) && _vm->getLanguage() == Common::PL_POL) {
+	if (id == _vm->_stack->getMap() && _vm->isGameVariant(GF_ME) && _vm->getLanguage() == Common::PL_POL) {
+		debug(3, "Fix for Inverted Map Colors in Myst ME Polish Version Triggered!");
 		mhkSurface->getSurface()->convertToInPlace(Graphics::PixelFormat(4, 8, 8, 8, 8, 8, 16, 0, 24));
 	}
 }




More information about the Scummvm-git-logs mailing list