aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTobia Tesan2013-07-13 19:14:10 +0200
committerTobia Tesan2013-08-01 00:06:39 +0200
commit9d4def3bfd541cd95ce62e18fa18d90799fcd791 (patch)
treefb789c8fd466f0ab6393dc299e76bb7fc32b263f /engines
parent9cfea04846b19f17c8c68c9e19a044c1b48c0f7f (diff)
downloadscummvm-rg350-9d4def3bfd541cd95ce62e18fa18d90799fcd791.tar.gz
scummvm-rg350-9d4def3bfd541cd95ce62e18fa18d90799fcd791.tar.bz2
scummvm-rg350-9d4def3bfd541cd95ce62e18fa18d90799fcd791.zip
WINTERMUTE: Fix alpha bug in BaseRenderOSystem::fadeToColor
Introduced in 37b1ff3, broke fade-in/fade-outs
Diffstat (limited to 'engines')
-rw-r--r--engines/wintermute/base/gfx/osystem/base_render_osystem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
index c81ea14fe9..2aae973309 100644
--- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
@@ -270,7 +270,9 @@ void BaseRenderOSystem::fadeToColor(byte r, byte g, byte b, byte a, Common::Rect
Common::Rect sizeRect(fillRect);
sizeRect.translate(-fillRect.top, -fillRect.left);
surf.fillRect(fillRect, col);
- drawSurface(nullptr, &surf, &sizeRect, &fillRect, TransformStruct());
+ TransformStruct temp = TransformStruct();
+ temp._alphaDisable = false;
+ drawSurface(nullptr, &surf, &sizeRect, &fillRect, temp);
surf.free();
//SDL_SetRenderDrawColor(_renderer, r, g, b, a);