diff options
Diffstat (limited to 'Libraries/LibGfx/FloatRect.h')
-rw-r--r-- | Libraries/LibGfx/FloatRect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGfx/FloatRect.h b/Libraries/LibGfx/FloatRect.h index 39caf90e03..3908dd8318 100644 --- a/Libraries/LibGfx/FloatRect.h +++ b/Libraries/LibGfx/FloatRect.h @@ -56,7 +56,7 @@ public: { } - explicit FloatRect(const Rect& other) + explicit FloatRect(const IntRect& other) : FloatRect((FloatPoint)other.location(), (FloatSize)other.size()) { } @@ -327,7 +327,7 @@ inline const LogStream& operator<<(const LogStream& stream, const FloatRect& val return stream << value.to_string(); } -inline Rect enclosing_int_rect(const FloatRect& float_rect) +inline IntRect enclosing_int_rect(const FloatRect& float_rect) { return { (int)float_rect.x(), (int)float_rect.y(), (int)ceilf(float_rect.width()), (int)ceilf(float_rect.height()) }; } |