aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorRichieSams2013-09-08 15:15:32 -0500
committerRichieSams2013-09-09 11:16:42 -0500
commit8354f236285bfd55536a19b177a4fcfbdd0aaa1b (patch)
treeafc2653187403edee6b3dd78a989d2bffd7c8330 /engines
parent31cdf227d20906986884113910680e2b22965be8 (diff)
downloadscummvm-rg350-8354f236285bfd55536a19b177a4fcfbdd0aaa1b.tar.gz
scummvm-rg350-8354f236285bfd55536a19b177a4fcfbdd0aaa1b.tar.bz2
scummvm-rg350-8354f236285bfd55536a19b177a4fcfbdd0aaa1b.zip
ZVISION: Add a debug assert to make sure we're not trying to render ouside the working window
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/render_manager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp
index 441580c1bc..04163fab61 100644
--- a/engines/zvision/render_manager.cpp
+++ b/engines/zvision/render_manager.cpp
@@ -289,6 +289,9 @@ void RenderManager::copyRectToWorkingWindow(const uint16 *buffer, int32 destX, i
}
_workingWindowDirtyRect.extend(Common::Rect(destX, destY, destX + width, destY + height));
+
+ // TODO: Remove this from release. It's here to make sure code that uses this function clips their destinations correctly
+ assert(_workingWindowDirtyRect.width() <= _workingWidth && _workingWindowDirtyRect.height() <= _workingHeight);
}
void RenderManager::copyRectToWorkingWindow(const uint16 *buffer, int32 destX, int32 destY, int32 imageWidth, int32 width, int32 height, int16 alphaColor) {