diff options
author | Le Philousophe | 2019-04-01 21:25:08 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 |
commit | 47908def70d1cae1d04155e436dae7dc05226948 (patch) | |
tree | cb67aff8c960d66c2a4413ae0b109f537e541a50 /engines/cryomni3d | |
parent | 7d6c3ee12bbef5a7b02f1782ba18840f381e2307 (diff) | |
download | scummvm-rg350-47908def70d1cae1d04155e436dae7dc05226948.tar.gz scummvm-rg350-47908def70d1cae1d04155e436dae7dc05226948.tar.bz2 scummvm-rg350-47908def70d1cae1d04155e436dae7dc05226948.zip |
CRYOMNI3D: Fix palette not applied when loading frame
Diffstat (limited to 'engines/cryomni3d')
-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 |