diff options
Diffstat (limited to 'engines/wintermute/base/base_transition_manager.cpp')
-rw-r--r-- | engines/wintermute/base/base_transition_manager.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/wintermute/base/base_transition_manager.cpp b/engines/wintermute/base/base_transition_manager.cpp index 7785f3d5af..1c869e6a2b 100644 --- a/engines/wintermute/base/base_transition_manager.cpp +++ b/engines/wintermute/base/base_transition_manager.cpp @@ -28,6 +28,7 @@ #include "engines/wintermute/base/base_transition_manager.h" #include "engines/wintermute/base/base_game.h" +#include "engines/wintermute/base/base_engine.h" #include "engines/wintermute/base/gfx/base_renderer.h" namespace Wintermute { @@ -51,7 +52,7 @@ BaseTransitionMgr::~BaseTransitionMgr() { ////////////////////////////////////////////////////////////////////////// -bool BaseTransitionMgr::isReady() { +bool BaseTransitionMgr::isReady() const { return (_state == TRANS_MGR_READY); } @@ -103,7 +104,7 @@ bool BaseTransitionMgr::update() { uint32 time = g_system->getMillis() - _lastTime; int alpha = (int)(255 - (float)time / (float)FADE_DURATION * 255); alpha = MIN(255, MAX(alpha, 0)); - _gameRef->_renderer->fade((uint16)alpha); + BaseEngine::getRenderer()->fade((uint16)alpha); if (time > FADE_DURATION) { _state = TRANS_MGR_READY; @@ -115,7 +116,7 @@ bool BaseTransitionMgr::update() { uint32 time = g_system->getMillis() - _lastTime; int alpha = (int)((float)time / (float)FADE_DURATION * 255); alpha = MIN(255, MAX(alpha, 0)); - _gameRef->_renderer->fade((uint16)alpha); + BaseEngine::getRenderer()->fade((uint16)alpha); if (time > FADE_DURATION) { _state = TRANS_MGR_READY; |