diff options
Diffstat (limited to 'engines/mads/msurface.cpp')
-rw-r--r-- | engines/mads/msurface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/msurface.cpp b/engines/mads/msurface.cpp index 6d74fefaab..39c7808560 100644 --- a/engines/mads/msurface.cpp +++ b/engines/mads/msurface.cpp @@ -407,7 +407,7 @@ void MSurface::copyFrom(MSurface *src, const Common::Point &destPos, int depth, Common::Point pt((destP - (byte *)this->pixels) % this->pitch, (destP - (byte *)this->pixels) / this->pitch); int pixelDepth = (depthSurface == nullptr) ? 15 : depthSurface->getDepth(pt); - + if ((*srcP != transparentColor) && (depth <= pixelDepth)) *destP = *srcP; |