diff options
author | Tobia Tesan | 2013-08-29 02:01:16 +0200 |
---|---|---|
committer | Tobia Tesan | 2013-08-29 02:01:16 +0200 |
commit | 4fec6dd36179e4e1b1b624b6a242b693647da73e (patch) | |
tree | 6f2e899a0c660919a875b2efbe1b1bb56d01b9dd /engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | |
parent | 913f03a2ba319bb8f1ec35a980b28dab471aee00 (diff) | |
download | scummvm-rg350-4fec6dd36179e4e1b1b624b6a242b693647da73e.tar.gz scummvm-rg350-4fec6dd36179e4e1b1b624b6a242b693647da73e.tar.bz2 scummvm-rg350-4fec6dd36179e4e1b1b624b6a242b693647da73e.zip |
WINTERMUTE: Remove useless Rect extra argument from fadeToColor.
It is not used anywhere, and Mnemonic has confirmed that the original
engine does NOT support anything but full screen fades.
Diffstat (limited to 'engines/wintermute/base/gfx/osystem/base_render_osystem.cpp')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 9738357dd1..f7a5caa93c 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -243,22 +243,16 @@ void BaseRenderOSystem::fade(uint16 alpha) { } ////////////////////////////////////////////////////////////////////////// -void BaseRenderOSystem::fadeToColor(byte r, byte g, byte b, byte a, Common::Rect *rect) { +void BaseRenderOSystem::fadeToColor(byte r, byte g, byte b, byte a) { Common::Rect fillRect; - if (rect) { - fillRect.left = rect->left; - fillRect.top = rect->top; - fillRect.setWidth(rect->width()); - fillRect.setHeight(rect->height()); - } else { - Rect32 rc; - _gameRef->getCurrentViewportRect(&rc); - fillRect.left = (int16)rc.left; - fillRect.top = (int16)rc.top; - fillRect.setWidth((int16)(rc.right - rc.left)); - fillRect.setHeight((int16)(rc.bottom - rc.top)); - } + Rect32 rc; + _gameRef->getCurrentViewportRect(&rc); + fillRect.left = (int16)rc.left; + fillRect.top = (int16)rc.top; + fillRect.setWidth((int16)(rc.right - rc.left)); + fillRect.setHeight((int16)(rc.bottom - rc.top)); + modTargetRect(&fillRect); //TODO: This is only here until I'm sure about the final pixelformat |