aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent
diff options
context:
space:
mode:
authorVladimir Menshakov2009-12-12 18:12:24 +0000
committerVladimir Menshakov2009-12-12 18:12:24 +0000
commitb0a5c5869f696445e79ab40d7d07d22bd0c84107 (patch)
treeb7487d09aadede5a8d2a31581d3bb4287a54a981 /engines/teenagent
parent65ed29b3be3ea735c581894882566355aa78a2eb (diff)
downloadscummvm-rg350-b0a5c5869f696445e79ab40d7d07d22bd0c84107.tar.gz
scummvm-rg350-b0a5c5869f696445e79ab40d7d07d22bd0c84107.tar.bz2
scummvm-rg350-b0a5c5869f696445e79ab40d7d07d22bd0c84107.zip
fixed dirty rectangle
svn-id: r46346
Diffstat (limited to 'engines/teenagent')
-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