aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d
diff options
context:
space:
mode:
authorLe Philousophe2019-04-01 21:25:08 +0200
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commit47908def70d1cae1d04155e436dae7dc05226948 (patch)
treecb67aff8c960d66c2a4413ae0b109f537e541a50 /engines/cryomni3d
parent7d6c3ee12bbef5a7b02f1782ba18840f381e2307 (diff)
downloadscummvm-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.cpp10
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