diff options
author | Johannes Schickel | 2013-08-03 02:41:39 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:52 +0200 |
commit | dbda889e6337a21babb95eae66880c81eb022bda (patch) | |
tree | f74eb921d10b887b6167a9e2b4eefe85c2dc3265 /engines/sci/engine/kvideo.cpp | |
parent | e30cb842101a6259633de46a9517ea46a2ba9860 (diff) | |
download | scummvm-rg350-dbda889e6337a21babb95eae66880c81eb022bda.tar.gz scummvm-rg350-dbda889e6337a21babb95eae66880c81eb022bda.tar.bz2 scummvm-rg350-dbda889e6337a21babb95eae66880c81eb022bda.zip |
SCI: Take advantage of Surface::getPixels.
Diffstat (limited to 'engines/sci/engine/kvideo.cpp')
-rw-r--r-- | engines/sci/engine/kvideo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kvideo.cpp b/engines/sci/engine/kvideo.cpp index 5db4f24dcd..3964ccc1f8 100644 --- a/engines/sci/engine/kvideo.cpp +++ b/engines/sci/engine/kvideo.cpp @@ -103,10 +103,10 @@ void playVideo(Video::VideoDecoder *videoDecoder, VideoState videoState) { if (frame) { if (scaleBuffer) { // TODO: Probably should do aspect ratio correction in e.g. GK1 Windows - g_sci->_gfxScreen->scale2x((const byte *)frame->getBasePtr(0, 0), scaleBuffer, videoDecoder->getWidth(), videoDecoder->getHeight(), bytesPerPixel); + g_sci->_gfxScreen->scale2x((const byte *)frame->getPixels(), scaleBuffer, videoDecoder->getWidth(), videoDecoder->getHeight(), bytesPerPixel); g_system->copyRectToScreen(scaleBuffer, pitch, x, y, width, height); } else { - g_system->copyRectToScreen(frame->getBasePtr(0, 0), frame->pitch, x, y, width, height); + g_system->copyRectToScreen(frame->getPixels(), frame->pitch, x, y, width, height); } if (videoDecoder->hasDirtyPalette()) { |