diff options
author | richiesams | 2013-08-29 02:05:07 -0500 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-09-24 13:59:39 +0200 |
commit | fa578497b3ceb745c31f789a40b95b4a15f1cbe0 (patch) | |
tree | 12958bcabdb140fdaa8ed9411b147efad4f262f3 /engines/zvision | |
parent | 4288c4fa0e36d2274257154c5365f71f6f6dd015 (diff) | |
download | scummvm-rg350-fa578497b3ceb745c31f789a40b95b4a15f1cbe0.tar.gz scummvm-rg350-fa578497b3ceb745c31f789a40b95b4a15f1cbe0.tar.bz2 scummvm-rg350-fa578497b3ceb745c31f789a40b95b4a15f1cbe0.zip |
ZVISION: Use Surface::getPixels() rather than getBasePtr(0, 0)
Prevents unnecessary algebra
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 d0dbbc5755..5230653ca3 100644 --- a/engines/zvision/video.cpp +++ b/engines/zvision/video.cpp @@ -143,10 +143,10 @@ void ZVision::playVideo(Video::VideoDecoder &videoDecoder, const Common::Rect &d if (frame) { if (scale != 1) { - scaleBuffer((const byte *)frame->getBasePtr(0, 0), scaledVideoFrameBuffer, origWidth, origHeight, bytesPerPixel, scale); + scaleBuffer((const byte *)frame->getPixels(), scaledVideoFrameBuffer, origWidth, origHeight, bytesPerPixel, scale); _system->copyRectToScreen(scaledVideoFrameBuffer, pitch * 2, x, y, finalWidth, finalHeight); } else { - _system->copyRectToScreen((const byte *)frame->getBasePtr(0, 0), pitch, x, y, finalWidth, finalHeight); + _system->copyRectToScreen((const byte *)frame->getPixels(), pitch, x, y, finalWidth, finalHeight); } } } |