diff options
author | Paul Gilbert | 2019-02-25 21:27:30 -0800 |
---|---|---|
committer | Paul Gilbert | 2019-02-25 21:27:30 -0800 |
commit | eae00fe6f9f0eb565f2c38447d705945db0e6ba6 (patch) | |
tree | dc13f8d728853e2a29f13f9759dc05d9a0d6764a /engines/sherlock/surface.cpp | |
parent | 09d34607808cbe22c7e8cd83d6781e442315c397 (diff) | |
download | scummvm-rg350-eae00fe6f9f0eb565f2c38447d705945db0e6ba6.tar.gz scummvm-rg350-eae00fe6f9f0eb565f2c38447d705945db0e6ba6.tar.bz2 scummvm-rg350-eae00fe6f9f0eb565f2c38447d705945db0e6ba6.zip |
SHERLOCK: 3DO: Fix transparency for characters, and speech dialogs
Diffstat (limited to 'engines/sherlock/surface.cpp')
-rw-r--r-- | engines/sherlock/surface.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/sherlock/surface.cpp b/engines/sherlock/surface.cpp index cca012630c..a5fbca5bd8 100644 --- a/engines/sherlock/surface.cpp +++ b/engines/sherlock/surface.cpp @@ -22,6 +22,7 @@ #include "sherlock/surface.h" #include "sherlock/fonts.h" +#include "sherlock/sherlock.h" namespace Sherlock { @@ -34,6 +35,10 @@ BaseSurface::BaseSurface(int width_, int height_) : Graphics::Screen(width_, hei create(width_, height_); } +BaseSurface::BaseSurface(int width_, int height_, const Graphics::PixelFormat &pf) : + Graphics::Screen(width_, height_, pf), Fonts() { +} + void BaseSurface::writeString(const Common::String &str, const Common::Point &pt, uint overrideColor) { Fonts::writeString(this, str, pt, overrideColor); } @@ -62,7 +67,7 @@ void BaseSurface::SHtransBlitFrom(const Graphics::Surface &src, const Common::Po Common::Rect destRect(pt.x, pt.y, pt.x + src.w * SCALE_THRESHOLD / scaleVal, pt.y + src.h * SCALE_THRESHOLD / scaleVal); - Graphics::Screen::transBlitFrom(src, srcRect, destRect, TRANSPARENCY, + Graphics::Screen::transBlitFrom(src, srcRect, destRect, IS_3DO ? 0 : TRANSPARENCY, flipped, overrideColor); } |