aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-12-12 23:27:17 -0500
committerPaul Gilbert2016-12-12 23:27:17 -0500
commitd239461726fdad7441056c3c037b82fc1af36414 (patch)
tree1b0c29c04ade503e1757e010affab56311e92205
parentfdb5db629842bea5081094529782da84ab93f616 (diff)
downloadscummvm-rg350-d239461726fdad7441056c3c037b82fc1af36414.tar.gz
scummvm-rg350-d239461726fdad7441056c3c037b82fc1af36414.tar.bz2
scummvm-rg350-d239461726fdad7441056c3c037b82fc1af36414.zip
FULLPIPE: Fix colors in intro video
-rw-r--r--engines/fullpipe/modal.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 8af6176566..41c1ba368b 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -378,7 +378,11 @@ void ModalVideoPlayer::play(const char *filename) {
if (aviDecoder->needsUpdate()) {
const Graphics::Surface *frame = aviDecoder->decodeNextFrame();
if (frame) {
- g_fp->_system->copyRectToScreen(frame->getPixels(), frame->pitch, x, y, frame->w, frame->h);
+ Graphics::Surface *frameCopy = frame->convertTo(g_system->getScreenFormat());
+ g_fp->_system->copyRectToScreen(frameCopy->getPixels(), frameCopy->pitch,
+ x, y, frameCopy->w, frameCopy->h);
+ frameCopy->free();
+ delete frameCopy;
if (aviDecoder->hasDirtyPalette())
g_fp->_system->getPaletteManager()->setPalette(aviDecoder->getPalette(), 0, 256);