ZVISION: Convert Surface::pixels to Surface::getBasePtr(0, 0)

This commit is contained in:
richiesams 2013-08-15 13:36:10 -05:00
parent 08a8ab885b
commit 999de6d400

View File

@ -148,10 +148,10 @@ void ZVision::playVideo(Video::VideoDecoder &videoDecoder, const Common::Rect &d
if (frame) {
if (scale != 1) {
scaleBuffer((byte *)frame->pixels, scaledVideoFrameBuffer, origWidth, origHeight, bytesPerPixel, scale);
scaleBuffer((byte *)frame->getBasePtr(0, 0), scaledVideoFrameBuffer, origWidth, origHeight, bytesPerPixel, scale);
_system->copyRectToScreen(scaledVideoFrameBuffer, pitch * 2, x, y, finalWidth, finalHeight);
} else {
_system->copyRectToScreen((byte *)frame->pixels, pitch, x, y, finalWidth, finalHeight);
_system->copyRectToScreen((byte *)frame->getBasePtr(0, 0), pitch, x, y, finalWidth, finalHeight);
}
_system->updateScreen();