projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce72d36
)
Return size as Sizef instead of Vector in Rectf
author
Ingo Ruhnke
<grumbel@gmail.com>
Sat, 16 Aug 2014 19:49:32 +0000
(21:49 +0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Sat, 16 Aug 2014 19:49:32 +0000
(21:49 +0200)
src/math/rectf.hpp
patch
|
blob
|
history
diff --git
a/src/math/rectf.hpp
b/src/math/rectf.hpp
index
a0001f1
..
80bc478
100644
(file)
--- a/
src/math/rectf.hpp
+++ b/
src/math/rectf.hpp
@@
-19,6
+19,7
@@
#include <assert.h>
+#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)