From 42b9e6dbe4fbc455729b08a160c17e69e6c0c197 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 16 Aug 2014 21:49:32 +0200 Subject: [PATCH 1/1] Return size as Sizef instead of Vector in Rectf --- src/math/rectf.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/math/rectf.hpp b/src/math/rectf.hpp index a0001f17a..80bc47829 100644 --- a/src/math/rectf.hpp +++ b/src/math/rectf.hpp @@ -19,6 +19,7 @@ #include +#include "math/sizef.hpp" #include "math/vector.hpp" #include "object/anchor_point.hpp" @@ -89,9 +90,9 @@ public: set_width(width); set_height(height); } - Vector get_size() + Sizef get_size() const { - return Vector(get_width(), get_height()); + return Sizef(get_width(), get_height()); } void move(const Vector& v) -- 2.11.0