From 375f32fbe94e8500a03c19ed32865efdcde8ca8e Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 16 Dec 2010 01:35:13 +0000 Subject: VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer svn-id: r54927 --- engines/tucker/sequences.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/tucker') diff --git a/engines/tucker/sequences.cpp b/engines/tucker/sequences.cpp index 633ed2790d..d804d85d9a 100644 --- a/engines/tucker/sequences.cpp +++ b/engines/tucker/sequences.cpp @@ -765,7 +765,7 @@ void AnimationSequencePlayer::openAnimation(int index, const char *fileName) { } bool AnimationSequencePlayer::decodeNextAnimationFrame(int index, bool copyDirtyRects) { - ::Graphics::Surface *surface = _flicPlayer[index].decodeNextFrame(); + const ::Graphics::Surface *surface = _flicPlayer[index].decodeNextFrame(); if (!copyDirtyRects) { for (uint16 y = 0; (y < surface->h) && (y < kScreenHeight); y++) @@ -804,7 +804,7 @@ void AnimationSequencePlayer::playIntroSeq19_20() { // The intro credits animation. This uses 2 animations: the foreground one, which // is the actual intro credits, and the background one, which is an animation of // cogs, and is being replayed when an intro credit appears - ::Graphics::Surface *surface = 0; + const ::Graphics::Surface *surface = 0; if (_flicPlayer[0].getCurFrame() >= 115) { surface = _flicPlayer[1].decodeNextFrame(); -- cgit v1.2.3