projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed Rect a bit and started to use Rect in Surface class
[supertux.git]
/
src
/
math
/
sizef.hpp
diff --git
a/src/math/sizef.hpp
b/src/math/sizef.hpp
index
9339eec
..
e03aeb0
100644
(file)
--- a/
src/math/sizef.hpp
+++ b/
src/math/sizef.hpp
@@
-41,14
+41,14
@@
public:
Sizef(const Size& rhs);
Sizef(const Size& rhs);
- Sizef& operator*=(
in
t factor)
+ Sizef& operator*=(
floa
t factor)
{
width *= factor;
height *= factor;
return *this;
}
{
width *= factor;
height *= factor;
return *this;
}
- Sizef& operator/=(
in
t divisor)
+ Sizef& operator/=(
floa
t divisor)
{
width /= divisor;
height /= divisor;
{
width /= divisor;
height /= divisor;
@@
-74,19
+74,19
@@
public:
float height;
};
float height;
};
-inline Sizef operator*(const Sizef& lhs,
in
t factor)
+inline Sizef operator*(const Sizef& lhs,
floa
t factor)
{
return Sizef(lhs.width * factor,
lhs.height * factor);
}
{
return Sizef(lhs.width * factor,
lhs.height * factor);
}
-inline Sizef operator*(
in
t factor, const Sizef& rhs)
+inline Sizef operator*(
floa
t factor, const Sizef& rhs)
{
return Sizef(rhs.width * factor,
rhs.height * factor);
}
{
return Sizef(rhs.width * factor,
rhs.height * factor);
}
-inline Sizef operator/(const Sizef& lhs,
in
t divisor)
+inline Sizef operator/(const Sizef& lhs,
floa
t divisor)
{
return Sizef(lhs.width / divisor,
lhs.height / divisor);
{
return Sizef(lhs.width / divisor,
lhs.height / divisor);