diff options
author | Johannes Schickel | 2013-08-03 00:43:48 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:33 +0200 |
commit | d91c379f16e6a75f3dac6464630bccc0d4437f40 (patch) | |
tree | ab7157f0cf3b33bc44076485ba3afa24a73292aa | |
parent | 338c4e2bce7729a4150a735f6208c1f83bbd5882 (diff) | |
download | scummvm-rg350-d91c379f16e6a75f3dac6464630bccc0d4437f40.tar.gz scummvm-rg350-d91c379f16e6a75f3dac6464630bccc0d4437f40.tar.bz2 scummvm-rg350-d91c379f16e6a75f3dac6464630bccc0d4437f40.zip |
SWORD2: Prefer getBasePtr over direct Surface::pixels access.
-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 713120ad43..c25b29d337 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->pixels, frame->pitch, x, y, frame->w, frame->h); + _vm->_system->copyRectToScreen(frame->getBasePtr(0, 0), 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.pixels, scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h); + _vm->_system->copyRectToScreen(scaledFrame.getBasePtr(0, 0), scaledFrame.pitch, x, y, scaledFrame.w, scaledFrame.h); scaledFrame.free(); } |