X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FMenu.h;h=c879cc979556f9b9c1d94d60f7552f5cf338d36e;hb=843c216fec572902bfae1fce95671b0d17aef946;hp=4d448b62df6de2b824f85eac8f2dacf587857ec4;hpb=4170813213bafe6f4a01a79bf42308ddb7f3c545;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);