diff options
author | Bastien Bouclet | 2018-04-19 19:13:12 +0200 |
---|---|---|
committer | Bastien Bouclet | 2018-04-19 19:13:12 +0200 |
commit | dcfac42bb3ebec723a8762d3b2b72ff4113bf900 (patch) | |
tree | 6364a301e4d531e42f43349f057cc7e723877efe /gui/ThemeEngine.cpp | |
parent | 066a14bd4c688e82670f4d0b944fcaa969939895 (diff) | |
download | scummvm-rg350-dcfac42bb3ebec723a8762d3b2b72ff4113bf900.tar.gz scummvm-rg350-dcfac42bb3ebec723a8762d3b2b72ff4113bf900.tar.bz2 scummvm-rg350-dcfac42bb3ebec723a8762d3b2b72ff4113bf900.zip |
GUI: Remove alpha bitmap support
It was never used since its introduction 4 years ago
It was not updated to work with the clipping rect
Diffstat (limited to 'gui/ThemeEngine.cpp')
-rw-r--r-- | gui/ThemeEngine.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index b16a6cfe4f..bb424fc3dc 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -966,18 +966,6 @@ void ThemeEngine::drawBitmap(const Graphics::Surface *bitmap, const Common::Rect addDirtyRect(r); } -void ThemeEngine::drawABitmap(Graphics::TransparentSurface *bitmap, const Common::Rect &r, AutoScaleMode autoscale, int alpha) { - if (_layerToDraw == kDrawLayerBackground) - return; - - Common::Rect area = r; - area.clip(_screen.w, _screen.h); - - _vectorRenderer->blitAlphaBitmap(bitmap, area, autoscale, Graphics::DrawStep::kVectorAlignManual, Graphics::DrawStep::kVectorAlignManual, alpha); - - addDirtyRect(area); -} - void ThemeEngine::drawBitmapClip(const Graphics::Surface *bitmap, const Common::Rect &r, const Common::Rect &clip, bool alpha) { if (_layerToDraw == kDrawLayerBackground) return; @@ -1371,13 +1359,6 @@ void ThemeEngine::drawSurface(const Common::Rect &r, const Graphics::Surface &su drawBitmap(&surface, r, themeTrans); } -void ThemeEngine::drawASurface(const Common::Rect &r, Graphics::TransparentSurface &surface, AutoScaleMode autoscale, int alpha) { - if (!ready()) - return; - - drawABitmap(&surface, r, autoscale, alpha); -} - void ThemeEngine::drawSurfaceClip(const Common::Rect &r, const Common::Rect &clip, const Graphics::Surface &surface, WidgetStateInfo state, int alpha, bool themeTrans) { if (!ready()) return; |