Skip to content

Commit

Permalink
DREAMWEB: Asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
tramboi committed Aug 31, 2011
1 parent 6ab4a0c commit d9c7b9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions engines/dreamweb/vgagrafx.cpp
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit d9c7b9d

Please sign in to comment.