aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker
diff options
context:
space:
mode:
authorJohannes Schickel2013-08-03 01:16:11 +0200
committerJohannes Schickel2013-08-03 02:52:34 +0200
commitd26817a6b89fa99dd69c633eee904ea4fa73714b (patch)
tree28042af38832cf619a8682a06b0d1659988afefe /engines/tucker
parentae7bc4dcf041c10ea0ce312bb788c402923ebdb0 (diff)
downloadscummvm-rg350-d26817a6b89fa99dd69c633eee904ea4fa73714b.tar.gz
scummvm-rg350-d26817a6b89fa99dd69c633eee904ea4fa73714b.tar.bz2
scummvm-rg350-d26817a6b89fa99dd69c633eee904ea4fa73714b.zip
TUCKER: Prefer getBasePtr over direct Surface::pixels access.
Diffstat (limited to 'engines/tucker')
-rw-r--r--engines/tucker/sequences.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tucker/sequences.cpp b/engines/tucker/sequences.cpp
index 16c4f4f6f0..5efe5eed00 100644
--- a/engines/tucker/sequences.cpp
+++ b/engines/tucker/sequences.cpp
@@ -763,7 +763,7 @@ bool AnimationSequencePlayer::decodeNextAnimationFrame(int index, bool copyDirty
if (!copyDirtyRects) {
for (uint16 y = 0; (y < surface->h) && (y < kScreenHeight); y++)
- memcpy(_offscreenBuffer + y * kScreenWidth, (byte *)surface->pixels + y * surface->pitch, surface->w);
+ memcpy(_offscreenBuffer + y * kScreenWidth, (const byte *)surface->getBasePtr(0, y), surface->w);
} else {
_flicPlayer[index].copyDirtyRectsToBuffer(_offscreenBuffer, kScreenWidth);
}
@@ -811,7 +811,7 @@ void AnimationSequencePlayer::playIntroSeq19_20() {
if (surface)
for (int i = 0; i < kScreenWidth * kScreenHeight; ++i)
if (_offscreenBuffer[i] == 0)
- _offscreenBuffer[i] = *((byte *)surface->pixels + i);
+ _offscreenBuffer[i] = *((const byte *)surface->getBasePtr(0, 0) + i);
if (!framesLeft)
_changeToNextSequence = true;