diff options
Diffstat (limited to 'engines/titanic/support/transparency_surface.cpp')
-rw-r--r-- | engines/titanic/support/transparency_surface.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/engines/titanic/support/transparency_surface.cpp b/engines/titanic/support/transparency_surface.cpp index 505cd1ff6c..a2efe12db7 100644 --- a/engines/titanic/support/transparency_surface.cpp +++ b/engines/titanic/support/transparency_surface.cpp @@ -57,39 +57,4 @@ CTransparencySurface::CTransparencySurface(const Graphics::Surface *surface, } } -int CTransparencySurface::moveX() { - if (++_pos.x >= _surface->w) { - _pos.x = 0; - ++_pos.y; - } - - return 1; -} - -uint CTransparencySurface::getPixel() const { - byte pixel = *(const byte *)_surface->getBasePtr(_pos.x, _pos.y); - return pixel; -} - -uint CTransparencySurface::getAlpha() const { - byte pixel = getPixel(); - return _opaqueColor ? 0xFF - pixel : pixel; -} - -bool CTransparencySurface::isPixelOpaque() const { - byte pixel = getPixel(); - if (_opaqueColor) - return pixel >= 0xf0; - else - return pixel < 0x10; -} - -bool CTransparencySurface::isPixelTransparent() const { - byte pixel = getPixel(); - if (_transparentColor) - return pixel >= 0xf0; - else - return pixel < 0x10; -} - } // End of namespace Titanic |