projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- renamed LEFT_ALLIGN to ALIGN_LEFT
[supertux.git]
/
src
/
video
/
surface.hpp
diff --git
a/src/video/surface.hpp
b/src/video/surface.hpp
index
650f931
..
d702181
100644
(file)
--- a/
src/video/surface.hpp
+++ b/
src/video/surface.hpp
@@
-21,6
+21,7
@@
#define __SURFACE_HPP__
#include <string>
#define __SURFACE_HPP__
#include <string>
+#include "math/vector.hpp"
class Color;
class Blend;
class Color;
class Blend;
@@
-81,6
+82,13
@@
public:
{
return height;
}
{
return height;
}
+
+ /**
+ * returns a vector containing width and height
+ */
+ Vector get_size() const
+ { return Vector(get_width(), get_height()); }
+
};
#endif
};
#endif