[Scummvm-git-logs] scummvm master -> d239461726fdad7441056c3c037b82fc1af36414
dreammaster
dreammaster at scummvm.org
Tue Dec 13 05:27:23 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d239461726 FULLPIPE: Fix colors in intro video
Commit: d239461726fdad7441056c3c037b82fc1af36414
https://github.com/scummvm/scummvm/commit/d239461726fdad7441056c3c037b82fc1af36414
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-12-12T23:27:17-05:00
Commit Message:
FULLPIPE: Fix colors in intro video
Changed paths:
engines/fullpipe/modal.cpp
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 8af6176..41c1ba3 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);
More information about the Scummvm-git-logs
mailing list