Skip to content

Commit

Permalink
MOHAWK: Fix inverted map colors in Myst ME (polish)
Browse files Browse the repository at this point in the history
Converts to a proper pixelformat. Fixes TRAC #12044
  • Loading branch information
tag2015 authored and digitall committed Jul 22, 2023
1 parent e622001 commit fd86bf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engines/mohawk/myst_graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ void MystGraphics::applyImagePatches(uint16 id, const MohawkSurface *mhkSurface)

fixSurf.free();
}

// Fix map picture with inverted colors in Myst ME Polish version
if (id == 9934 && _vm->isGameVariant(GF_ME) && _vm->getLanguage() == Common::PL_POL) {
mhkSurface->getSurface()->convertToInPlace(Graphics::PixelFormat(4, 8, 8, 8, 8, 8, 16, 0, 24));
}
}

void MystGraphics::copyImageSectionToScreen(uint16 image, Common::Rect src, Common::Rect dest) {
Expand Down

0 comments on commit fd86bf0

Please sign in to comment.