Use float instead of int
authorgrumbel <grumbel@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Tue, 1 Dec 2009 03:54:44 +0000 (03:54 +0000)
committergrumbel <grumbel@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Tue, 1 Dec 2009 03:54:44 +0000 (03:54 +0000)
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6159 837edb03-e0f3-0310-88ca-d4d4e8b29345

src/math/sizef.hpp

index 9339eec..e03aeb0 100644 (file)
@@ -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);