diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/cryomni3d/versailles/dialogs_manager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cryomni3d/versailles/dialogs_manager.cpp b/engines/cryomni3d/versailles/dialogs_manager.cpp index 3ebc4cf0c0..f7a2146d92 100644 --- a/engines/cryomni3d/versailles/dialogs_manager.cpp +++ b/engines/cryomni3d/versailles/dialogs_manager.cpp @@ -352,15 +352,15 @@ void Versailles_DialogsManager::loadFrame(const Common::String &video) { return; } + // Preload first frame to draw questions on it + const Graphics::Surface *firstFrame = videoDecoder->decodeNextFrame(); + _lastImage.create(firstFrame->w, firstFrame->h, firstFrame->format); + _lastImage.blitFrom(*firstFrame); + if (videoDecoder->hasDirtyPalette()) { const byte *palette = videoDecoder->getPalette(); _engine->setupPalette(palette, 0, 256); } - - // Preload first frame to draw subtitles from it - const Graphics::Surface *firstFrame = videoDecoder->decodeNextFrame(); - _lastImage.create(firstFrame->w, firstFrame->h, firstFrame->format); - _lastImage.blitFrom(*firstFrame); } } // End of namespace Versailles |