diff --git a/src/gfx/rect.h b/src/gfx/rect.h index 0da09cf93..2980c52da 100644 --- a/src/gfx/rect.h +++ b/src/gfx/rect.h @@ -1,5 +1,5 @@ // Aseprite Gfx Library -// Copyright (C) 2001-2013 David Capello +// Copyright (C) 2001-2013, 2015 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. @@ -141,6 +141,12 @@ public: return *this; } + RectT& inflate(const T& delta) { + w += delta; + h += delta; + return *this; + } + RectT& inflate(const T& dw, const T& dh) { w += dw; h += dh;