aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2009-12-12 11:53:44 +0000
committerVladimir Menshakov2009-12-12 11:53:44 +0000
commit8a3bb27f6395ce4530213171d6fe588d7120defc (patch)
tree04c1d831b1859d2a5dca0363a1610a4c9705bc4b
parent72cb0036a3780ef89fa94cc92cbdf4da37d8fc56 (diff)
downloadscummvm-rg350-8a3bb27f6395ce4530213171d6fe588d7120defc.tar.gz
scummvm-rg350-8a3bb27f6395ce4530213171d6fe588d7120defc.tar.bz2
scummvm-rg350-8a3bb27f6395ce4530213171d6fe588d7120defc.zip
added Rect ctor from Common::Rect
svn-id: r46337
-rw-r--r--engines/teenagent/objects.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/objects.h b/engines/teenagent/objects.h
index 6838f6c49b..dedcd7cc02 100644
--- a/engines/teenagent/objects.h
+++ b/engines/teenagent/objects.h
@@ -37,7 +37,7 @@ struct Rect {
int16 left, top, right, bottom;
inline Rect() : left(0), top(0), right(0), bottom(0), _base(NULL) {}
-
+ inline Rect(const Common::Rect &r) : left(r.left), top(r.top), right(r.right), bottom(r.bottom), _base(NULL) {}
inline Rect(uint16 l, uint16 t, uint16 r, uint16 b) : left(l), top(t), right(r), bottom(b), _base(NULL) {}
inline bool in(const Common::Point &point) const {