aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorRichieSams2013-09-22 23:28:32 -0500
committerWillem Jan Palenstijn2013-09-24 13:49:05 +0200
commit29db14c7ddac3ba0afbe9f40c3f9219392c86f53 (patch)
treef76c4f944eeb1702d3df256aee94623fac90c626 /engines/zvision
parentdfba1a01446a32245944a86ee08a843587050753 (diff)
downloadscummvm-rg350-29db14c7ddac3ba0afbe9f40c3f9219392c86f53.tar.gz
scummvm-rg350-29db14c7ddac3ba0afbe9f40c3f9219392c86f53.tar.bz2
scummvm-rg350-29db14c7ddac3ba0afbe9f40c3f9219392c86f53.zip
ZVISION: Don't cast away const-ness
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/animation_control.cpp4
1 files changed, 2 insertions, 2 deletions
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) {