aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/video
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-24 22:54:24 +0200
committerFilippos Karapetis2014-12-24 22:56:56 +0200
commit5f8418394b925adfc62ee6d180515157190a8cd9 (patch)
tree2418c3c72c1117ca484cc00c69291357f23904d1 /engines/zvision/video
parente8e21fabe4dbe4effdfb3df05fd3fae75940f1c5 (diff)
downloadscummvm-rg350-5f8418394b925adfc62ee6d180515157190a8cd9.tar.gz
scummvm-rg350-5f8418394b925adfc62ee6d180515157190a8cd9.tar.bz2
scummvm-rg350-5f8418394b925adfc62ee6d180515157190a8cd9.zip
ZVISION: Set all the internal graphics operations to use RGB555 (2/2)
This is the second part of the changes to make the engine use RGB555 internally again. This is done to simplify the rendering pipeline - the engine will use RGB555 internally, but will output to RGB565. The overall changes have been broken into two commits, with this commit finishing all the changes. This is needed, as the game uses RGB555 graphics internally, but its AVI animations (full screen and in-game) use RGB565
Diffstat (limited to 'engines/zvision/video')
-rw-r--r--engines/zvision/video/video.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/zvision/video/video.cpp b/engines/zvision/video/video.cpp
index 50a6fc136a..e67e6570c5 100644
--- a/engines/zvision/video/video.cpp
+++ b/engines/zvision/video/video.cpp
@@ -114,7 +114,8 @@ void ZVision::playVideo(Video::VideoDecoder &vid, const Common::Rect &destRect,
_renderManager->scaleBuffer(frame->getPixels(), scaled->getPixels(), frame->w, frame->h, frame->format.bytesPerPixel, scaled->w, scaled->h);
frame = scaled;
}
- _system->copyRectToScreen((const byte *)frame->getPixels(), frame->pitch, x, y, finalWidth, finalHeight);
+ Common::Rect rect = Common::Rect(x, y, x + finalWidth, y + finalHeight);
+ _renderManager->copyToScreen(*frame, rect, 0, 0);
_renderManager->processSubs(0);
}
}