X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FMenu.h;h=c879cc979556f9b9c1d94d60f7552f5cf338d36e;hb=1162be37102b24df11f469495c0184f3f9a26ba0;hp=4d448b62df6de2b824f85eac8f2dacf587857ec4;hpb=85ac93ffe31bfeee54aa6167111f1c15f14bc405;p=l2e.git diff --git a/src/graphics/Menu.h b/src/graphics/Menu.h index 4d448b6..c879cc9 100644 --- a/src/graphics/Menu.h +++ b/src/graphics/Menu.h @@ -61,7 +61,7 @@ public: void Reserve(int n) { entries.reserve(n); } void Clear() { entries.clear(); } - void Draw(SDL_Surface *dest, geometry::Point position) const; + void Draw(SDL_Surface *dest, const geometry::Point &position) const; private: int GetRow(int index) const { return index / cols; } @@ -196,7 +196,7 @@ void Menu::SelectIndex(int index) { template -void Menu::Draw(SDL_Surface *dest, geometry::Point position) const { +void Menu::Draw(SDL_Surface *dest, const geometry::Point &position) const { int start(topRow * cols); int slots(rows * cols); int items(entries.size() - start);