From 29db14c7ddac3ba0afbe9f40c3f9219392c86f53 Mon Sep 17 00:00:00 2001 From: RichieSams Date: Sun, 22 Sep 2013 23:28:32 -0500 Subject: ZVISION: Don't cast away const-ness --- engines/zvision/animation_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/zvision/animation_control.cpp b/engines/zvision/animation_control.cpp index f80faea0f9..bb810a86d0 100644 --- a/engines/zvision/animation_control.cpp +++ b/engines/zvision/animation_control.cpp @@ -118,7 +118,7 @@ bool AnimationControl::process(uint32 deltaTimeInMillis) { delete tranposedFrame; } } else { - renderManager->copyRectToWorkingWindow((uint16 *)frame->getBasePtr(frame->w - subRect.width(), frame->h - subRect.height()), subRect.left, subRect.top, _animation.rlf->width(), subRect.width(), subRect.height()); + renderManager->copyRectToWorkingWindow((const uint16 *)frame->getBasePtr(frame->w - subRect.width(), frame->h - subRect.height()), subRect.left, subRect.top, _animation.rlf->width(), subRect.width(), subRect.height()); // If the background can move, we need to cache the last frame so it can be rendered during background movement if (state == RenderTable::PANORAMA || state == RenderTable::TILT) { @@ -202,7 +202,7 @@ bool AnimationControl::process(uint32 deltaTimeInMillis) { delete tranposedFrame; } } else { - renderManager->copyRectToWorkingWindow((uint16 *)frame->getBasePtr(frame->w - subRect.width(), frame->h - subRect.height()), subRect.left, subRect.top, frame->w, subRect.width(), subRect.height()); + renderManager->copyRectToWorkingWindow((const uint16 *)frame->getBasePtr(frame->w - subRect.width(), frame->h - subRect.height()), subRect.left, subRect.top, frame->w, subRect.width(), subRect.height()); // If the background can move, we need to cache the last frame so it can be rendered during background movement if (state == RenderTable::PANORAMA || state == RenderTable::TILT) { -- cgit v1.2.3