X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FGauge.cpp;h=027d6b1313d541cc0afc7c44ccada3abe967b224;hb=1162be37102b24df11f469495c0184f3f9a26ba0;hp=09405a2069ca15da6b560df6a9328d95e0ceec71;hpb=2d10e898ccd404a69be02f5e93cf97398de99984;p=l2e.git diff --git a/src/graphics/Gauge.cpp b/src/graphics/Gauge.cpp index 09405a2..027d6b1 100644 --- a/src/graphics/Gauge.cpp +++ b/src/graphics/Gauge.cpp @@ -11,7 +11,7 @@ using geometry::Point; namespace graphics { -void Gauge::Draw(SDL_Surface *dest, Point position, int width, Uint8 fill) const { +void Gauge::Draw(SDL_Surface *dest, const Point &position, int width, Uint8 fill) const { SDL_Rect srcRect, destRect; int filledWidth = fill * (width - startWidth - endWidth) / 255;