diff options
author | Johannes Schickel | 2013-08-03 00:40:03 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-08-03 02:52:33 +0200 |
commit | dd67e9f09939367f19b7ada1c51ca0760b0fda87 (patch) | |
tree | 8a4667773d654ce1f2189f3917587c04b1054adc /engines/sci/engine | |
parent | 8617edea04cfb2439de54d3ce4e64f92e5bd0416 (diff) | |
download | scummvm-rg350-dd67e9f09939367f19b7ada1c51ca0760b0fda87.tar.gz scummvm-rg350-dd67e9f09939367f19b7ada1c51ca0760b0fda87.tar.bz2 scummvm-rg350-dd67e9f09939367f19b7ada1c51ca0760b0fda87.zip |
SCI: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/sci/engine')
-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 9b0cb38f51..5db4f24dcd 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((byte *)frame->pixels, scaleBuffer, videoDecoder->getWidth(), videoDecoder->getHeight(), bytesPerPixel); + g_sci->_gfxScreen->scale2x((const byte *)frame->getBasePtr(0, 0), scaleBuffer, videoDecoder->getWidth(), videoDecoder->getHeight(), bytesPerPixel); g_system->copyRectToScreen(scaleBuffer, pitch, x, y, width, height); } else { - g_system->copyRectToScreen(frame->pixels, frame->pitch, x, y, width, height); + g_system->copyRectToScreen(frame->getBasePtr(0, 0), frame->pitch, x, y, width, height); } if (videoDecoder->hasDirtyPalette()) { |