aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/surface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/teenagent/surface.cpp')
-rw-r--r--engines/teenagent/surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/teenagent/surface.cpp b/engines/teenagent/surface.cpp
index 9bde604b8f..62bc033a20 100644
--- a/engines/teenagent/surface.cpp
+++ b/engines/teenagent/surface.cpp
@@ -76,8 +76,8 @@ void Surface::load(Common::SeekableReadStream *stream, Type type) {
}
Common::Rect Surface::render(Graphics::Surface *surface, int dx, int dy, bool mirror) {
- assert(x + w <= surface->w);
- assert(y + h <= surface->h);
+ assert(x + dx + w <= surface->w);
+ assert(y + dy + h <= surface->h);
byte *src = (byte *)pixels;
byte *dst = (byte *)surface->getBasePtr(dx + x, dy + y);