X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FGauge.cpp;h=eda9942d4cdb5697b294bf706af3749739d1a8a5;hb=0542849dfccfec1ce1477265fa0fee2401a8fb23;hp=027d6b1313d541cc0afc7c44ccada3abe967b224;hpb=1162be37102b24df11f469495c0184f3f9a26ba0;p=l2e.git diff --git a/src/graphics/Gauge.cpp b/src/graphics/Gauge.cpp index 027d6b1..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, const 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;