include fixes from ohnobinki, video_systems.cpp should fall back to SDL now if GL...
[supertux.git] / src / math / size.hpp
index 81983d6..91a7868 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <iosfwd>
 
-class Sizef;
+#include "math/vector.hpp"
 
 class Size
 {
@@ -92,6 +92,12 @@ inline Size operator/(const Size& lhs, int divisor)
               lhs.height / divisor); 
 }
 
+inline Vector operator/(const Size& lhs, float divisor)
+{ 
+  return Vector(lhs.width  / divisor, 
+              lhs.height / divisor); 
+}
+
 inline Size operator+(const Size& lhs, const Size& rhs)
 { 
   return Size(lhs.width  + rhs.width,