]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Menu.h
merged Point into Vector
[l2e.git] / src / graphics / Menu.h
index c879cc979556f9b9c1d94d60f7552f5cf338d36e..f1a6d2580e25e6657a222e038eca393793c8a0ad 100644 (file)
@@ -10,8 +10,6 @@
 
 #include "Font.h"
 #include "Sprite.h"
-#include "../geometry/operators.h"
-#include "../geometry/Point.h"
 #include "../geometry/Vector.h"
 
 #include <vector>
@@ -61,7 +59,7 @@ public:
        void Reserve(int n) { entries.reserve(n); }
        void Clear() { entries.clear(); }
 
-       void Draw(SDL_Surface *dest, const geometry::Point<int> &position) const;
+       void Draw(SDL_Surface *dest, const geometry::Vector<int> &position) const;
 
 private:
        int GetRow(int index) const { return index / cols; }
@@ -196,7 +194,7 @@ void Menu<T>::SelectIndex(int index) {
 
 
 template<class T>
-void Menu<T>::Draw(SDL_Surface *dest, const geometry::Point<int> &position) const {
+void Menu<T>::Draw(SDL_Surface *dest, const geometry::Vector<int> &position) const {
        int start(topRow * cols);
        int slots(rows * cols);
        int items(entries.size() - start);