aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/teenagent/surface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/surface.cpp b/engines/teenagent/surface.cpp
index 82a6399657..bb6aca155a 100644
--- a/engines/teenagent/surface.cpp
+++ b/engines/teenagent/surface.cpp
@@ -106,7 +106,7 @@ Common::Rect Surface::render(Graphics::Surface *surface, int dx, int dy, bool mi
dst += surface->pitch;
}
}
- return Common::Rect(x + dx, y + dy, x + w + dx, y + h + dy);
+ return Common::Rect(x + dx, y + dy, x + src_rect.width() + dx, y + src_rect.height() + dy);
}
} // End of namespace TeenAgent