diff --git a/common/rect.h b/common/rect.h index 408fc0ccfe0..ca4b7f0c3e5 100644 --- a/common/rect.h +++ b/common/rect.h @@ -87,6 +87,13 @@ struct Rect { bool contains(const Rect & r) const { return (left <= r.right) && (r.left < right) && (top <= r.bottom) && (r.top < bottom); } + + void grow(int16 offset) { + top -= offset; + left -= offset; + bottom += offset; + right += offset; + } }; }; // End of namespace ScummVM