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

This commit is contained in:
D G Turner 2024-04-07 18:54:20 +01:00
parent dec0ec656c
commit 541badba9e

View File

@ -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));
}
}