From 999de6d400be8374a6834a81bb8b8f4da4a1756c Mon Sep 17 00:00:00 2001 From: richiesams Date: Thu, 15 Aug 2013 13:36:10 -0500 Subject: ZVISION: Convert Surface::pixels to Surface::getBasePtr(0, 0) --- engines/zvision/video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/zvision/video.cpp b/engines/zvision/video.cpp index 5497d0af0c..28c26f6f2a 100644 --- a/engines/zvision/video.cpp +++ b/engines/zvision/video.cpp @@ -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(); -- cgit v1.2.3