diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cine/cine.cpp | 2 | ||||
-rw-r--r-- | engines/cine/gfx.cpp | 10 | ||||
-rw-r--r-- | engines/cine/gfx.h | 4 |
3 files changed, 16 insertions, 0 deletions
diff --git a/engines/cine/cine.cpp b/engines/cine/cine.cpp index 8756a2fc3c..46aea246bd 100644 --- a/engines/cine/cine.cpp +++ b/engines/cine/cine.cpp @@ -144,6 +144,8 @@ void CineEngine::initialize() { renderer = new FWRenderer; } + renderer->initialize(); + collisionPage = new byte[320 * 200]; // Clear part buffer as there's nothing loaded into it yet. diff --git a/engines/cine/gfx.cpp b/engines/cine/gfx.cpp index ddc2d48152..f17c8dd6e1 100644 --- a/engines/cine/gfx.cpp +++ b/engines/cine/gfx.cpp @@ -107,6 +107,11 @@ FWRenderer::~FWRenderer() { delete[] _backBuffer; } +bool FWRenderer::initialize() { + _activePal = Palette(kLowPalFormat, kLowPalNumColors); + return true; +} + /* \brief Reset renderer state */ void FWRenderer::clear() { @@ -888,6 +893,11 @@ OSRenderer::~OSRenderer() { } } +bool OSRenderer::initialize() { + _activePal = Palette(kHighPalFormat, kHighPalNumColors); + return true; +} + /*! \brief Reset Operation Stealth renderer state */ void OSRenderer::clear() { diff --git a/engines/cine/gfx.h b/engines/cine/gfx.h index f1503a4c46..f65bc31d1a 100644 --- a/engines/cine/gfx.h +++ b/engines/cine/gfx.h @@ -109,6 +109,8 @@ public: FWRenderer(); virtual ~FWRenderer(); + virtual bool initialize(); + /*! \brief Test if renderer is ready to draw */ virtual bool ready() { return _background != NULL; } @@ -167,6 +169,8 @@ public: OSRenderer(); ~OSRenderer(); + bool initialize(); + /*! \brief Test if renderer is ready to draw */ bool ready() { return _bgTable[_currentBg].bg != NULL; } |