diff options
author | richiesams | 2013-08-15 13:36:10 -0500 |
---|---|---|
committer | richiesams | 2013-08-15 14:15:58 -0500 |
commit | 999de6d400be8374a6834a81bb8b8f4da4a1756c (patch) | |
tree | 213625cabc53eb9bdbc6ad79c6fda2e89a9f22b3 /engines/zvision | |
parent | 08a8ab885bf6a2eea1f0eb9d7526cdbe240561e6 (diff) | |
download | scummvm-rg350-999de6d400be8374a6834a81bb8b8f4da4a1756c.tar.gz scummvm-rg350-999de6d400be8374a6834a81bb8b8f4da4a1756c.tar.bz2 scummvm-rg350-999de6d400be8374a6834a81bb8b8f4da4a1756c.zip |
ZVISION: Convert Surface::pixels to Surface::getBasePtr(0, 0)
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/video.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |