aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 02:42:09 +0200
committerJohannes Schickel2013-08-03 04:02:52 +0200
commit54b30d8e5d7cb61bea8c439cd5bd0dd1f1d289fb (patch)
tree7cdaeef43810962200cf42aabb9ce87fe4959055
parentdbda889e6337a21babb95eae66880c81eb022bda (diff)
downloadscummvm-rg350-54b30d8e5d7cb61bea8c439cd5bd0dd1f1d289fb.tar.gz
scummvm-rg350-54b30d8e5d7cb61bea8c439cd5bd0dd1f1d289fb.tar.bz2
scummvm-rg350-54b30d8e5d7cb61bea8c439cd5bd0dd1f1d289fb.zip
SWORD1: Take advantage of Surface::getPixels.
-rw-r--r--engines/sword1/animation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sword1/animation.cpp b/engines/sword1/animation.cpp
index 73a22093ab..742aac1a53 100644
--- a/engines/sword1/animation.cpp
+++ b/engines/sword1/animation.cpp
@@ -314,7 +314,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()) {
@@ -407,7 +407,7 @@ bool MoviePlayer::playVideo() {
}
Graphics::Surface *screen = _vm->_system->lockScreen();
- performPostProcessing((byte *)screen->getBasePtr(0, 0));
+ performPostProcessing((byte *)screen->getPixels());
_vm->_system->unlockScreen();
_vm->_system->updateScreen();
}
@@ -498,7 +498,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();
}