From 5a8b613a97c63a3cb354f05eab6a5460d4ea45a6 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 18 Jun 2014 09:20:37 +0300 Subject: FULLPIPE: Stubbed sceneFade() --- engines/fullpipe/fullpipe.h | 1 + engines/fullpipe/gfx.cpp | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) (limited to 'engines') diff --git a/engines/fullpipe/fullpipe.h b/engines/fullpipe/fullpipe.h index 394f6a0162..7f20a6d6af 100644 --- a/engines/fullpipe/fullpipe.h +++ b/engines/fullpipe/fullpipe.h @@ -243,6 +243,7 @@ public: int (*_updateCursorCallback)(); void drawAlphaRectangle(int x1, int y1, int x2, int y2, int alpha); + void sceneFade(Scene *sc, bool direction); int _cursorId; int _minCursorId; diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp index 2bed8a8195..26156481d2 100644 --- a/engines/fullpipe/gfx.cpp +++ b/engines/fullpipe/gfx.cpp @@ -1256,4 +1256,23 @@ void FullpipeEngine::drawAlphaRectangle(int x1, int y1, int x2, int y2, int alph warning("STUB: FullpipeEngine::drawAlphaRectangle()"); } +void FullpipeEngine::sceneFade(Scene *sc, bool direction) { + warning("STUB: FullpipeEngine::sceneFade()"); + +#if 0 + for (int dim = 0; dim < 255; dim += 20) { + v5 = GetTickCount(); + vrtSetAlphaBlendMode(*(_DWORD *)virt, 0, 255); + sc->draw(); + drawAlphaRectangle(0, 0, 800, 600, direction ? 255 - dim : dim); + vrtFlush(*(_DWORD *)virt); + v7 = GetTickCount(); + if ( v7 - v5 < 42 ) + Sleep(v5 - v7 + 42); + } + vrtSetAlphaBlendMode(*(_DWORD *)virt, 0, 255); +#endif + +} + } // End of namespace Fullpipe -- cgit v1.2.3