From 2a7eed0651e57e04f995967af57444a569cf6d9e Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Tue, 1 Dec 2009 03:54:44 +0000 Subject: [PATCH] Use float instead of int SVN-Revision: 6159 --- src/math/sizef.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/math/sizef.hpp b/src/math/sizef.hpp index 9339eeced..e03aeb03c 100644 --- a/src/math/sizef.hpp +++ b/src/math/sizef.hpp @@ -41,14 +41,14 @@ public: Sizef(const Size& rhs); - Sizef& operator*=(int factor) + Sizef& operator*=(float factor) { width *= factor; height *= factor; return *this; } - Sizef& operator/=(int divisor) + Sizef& operator/=(float divisor) { width /= divisor; height /= divisor; @@ -74,19 +74,19 @@ public: float height; }; -inline Sizef operator*(const Sizef& lhs, int factor) +inline Sizef operator*(const Sizef& lhs, float factor) { return Sizef(lhs.width * factor, lhs.height * factor); } -inline Sizef operator*(int factor, const Sizef& rhs) +inline Sizef operator*(float factor, const Sizef& rhs) { return Sizef(rhs.width * factor, rhs.height * factor); } -inline Sizef operator/(const Sizef& lhs, int divisor) +inline Sizef operator/(const Sizef& lhs, float divisor) { return Sizef(lhs.width / divisor, lhs.height / divisor); -- 2.11.0