From d9c7b9dd39ced4c2954aca9f1537d667d576eafb Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Thu, 1 Sep 2011 01:04:15 +0200 Subject: DREAMWEB: Asserts --- engines/dreamweb/vgagrafx.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3