[Scummvm-git-logs] scummvm master -> 8d654285cbf0bf6423676244c89833557f811e38
bgK
bastien.bouclet at gmail.com
Mon May 28 15:29:12 CEST 2018
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:
8d654285cb MOHAWK: MYST: Fix drawing the Stoneship red page open door
Commit: 8d654285cbf0bf6423676244c89833557f811e38
https://github.com/scummvm/scummvm/commit/8d654285cbf0bf6423676244c89833557f811e38
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2018-05-28T15:20:09+02:00
Commit Message:
MOHAWK: MYST: Fix drawing the Stoneship red page open door
When the lights are on, the open door image would not draw at the
correct position in Myst ME only.
This is due to the open door image being too small. The original has a
special case for that image. We reproduce that same hack.
Fixes Trac#7143.
Changed paths:
engines/mohawk/myst_graphics.cpp
diff --git a/engines/mohawk/myst_graphics.cpp b/engines/mohawk/myst_graphics.cpp
index 3f8d15c..6b43ea0 100644
--- a/engines/mohawk/myst_graphics.cpp
+++ b/engines/mohawk/myst_graphics.cpp
@@ -231,6 +231,15 @@ void MystGraphics::copyImageSectionToBackBuffer(uint16 image, Common::Rect src,
MohawkSurface *mhkSurface = findImage(image);
Graphics::Surface *surface = mhkSurface->getSurface();
+ if (image == 2258 && _vm->getFeatures() & GF_ME) {
+ // In Myst ME, the image for the open red page brother door
+ // when the special lights are on does not have the correct width.
+ // We work around this issue by tweaking the destination rectangle
+ // so it renders at the correct position.
+ // The original executable does the same hack.
+ dest.left += 49;
+ }
+
// Make sure the image is bottom aligned in the dest rect
dest.top = dest.bottom - MIN<int>(surface->h, dest.height());
More information about the Scummvm-git-logs
mailing list