diff options
author | Johannes Schickel | 2013-08-03 02:42:18 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 04:02:52 +0200 |
commit | 5f8bce839f1a463f0de0ba5e116d93d802fb8ad0 (patch) | |
tree | 4cbe2632581d2b58bd1ede3a4ab254df37c728e8 | |
parent | 54b30d8e5d7cb61bea8c439cd5bd0dd1f1d289fb (diff) | |
download | scummvm-rg350-5f8bce839f1a463f0de0ba5e116d93d802fb8ad0.tar.gz scummvm-rg350-5f8bce839f1a463f0de0ba5e116d93d802fb8ad0.tar.bz2 scummvm-rg350-5f8bce839f1a463f0de0ba5e116d93d802fb8ad0.zip |
SWORD2: Take advantage of Surface::getPixels.
-rw-r--r-- | engines/sword2/animation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp index c25b29d337..92fa9d0e44 100644 --- a/engines/sword2/animation.cpp +++ b/engines/sword2/animation.cpp @@ -334,7 +334,7 @@ bool MoviePlayer::playVideo() { if (_decoderType == kVideoDecoderPSX) drawFramePSX(frame); else - _vm->_system->copyRectToScreen(frame->getBasePtr(0, 0), frame->pitch, x, y, frame->w, frame->h); + _vm->_system->copyRectToScreen(frame->getPixels(), frame->pitch, x, y, frame->w, frame->h); } if (_decoder->hasDirtyPalette()) { @@ -403,7 +403,7 @@ void MoviePlayer::drawFramePSX(const Graphics::Surface *frame) { uint16 x = (g_system->getWidth() - scaledFrame.w) / 2; uint16 y = (g_system->getHeight() - scaledFrame.h) / 2; - _vm->_system->copyRectToScreen(scaledFrame.getBasePtr(0, 0), scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h); + _vm->_system->copyRectToScreen(scaledFrame.getPixels(), scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h); scaledFrame.free(); } |