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