aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBertrand Augereau2011-09-01 01:04:15 +0200
committerBertrand Augereau2011-09-01 01:04:15 +0200
commitd9c7b9dd39ced4c2954aca9f1537d667d576eafb (patch)
treec07f1a77cce8766a3a2f85bfc5502e5fff454bcb /engines
parent6ab4a0ceee71293c100a810c591dde823c2b76ba (diff)
downloadscummvm-rg350-d9c7b9dd39ced4c2954aca9f1537d667d576eafb.tar.gz
scummvm-rg350-d9c7b9dd39ced4c2954aca9f1537d667d576eafb.tar.bz2
scummvm-rg350-d9c7b9dd39ced4c2954aca9f1537d667d576eafb.zip
DREAMWEB: Asserts
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/vgagrafx.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 5c63b88682..beb2d61f7e 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -43,6 +43,8 @@ void DreamGenContext::multiget() {
}
void DreamGenContext::multiget(uint8 *dst, uint16 x, uint16 y, uint8 w, uint8 h) {
+ assert(x < 320);
+ assert(y < 200);
const uint8 *src = workspace() + x + y * kScreenwidth;
if (y + h > 200)
h = 200 - y;
@@ -64,6 +66,8 @@ void DreamGenContext::multiput() {
}
void DreamGenContext::multiput(const uint8 *src, uint16 x, uint16 y, uint8 w, uint8 h) {
+ assert(x < 320);
+ assert(y < 200);
uint8 *dst = workspace() + x + y * kScreenwidth;
if (y + h > 200)
h = 200 - y;