X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FGauge.cpp;h=65535f5d2436f4b0664c430370a2e4bb5f032093;hb=e462583cabc752b8f03b423e98e93bca5f5045d8;hp=042dc2704b4705e7c152926582ce85924f3ce0ee;hpb=2e0bbc9fcc1cce3e1faeff85cc63de7f676e8077;p=l2e.git diff --git a/src/graphics/Gauge.cpp b/src/graphics/Gauge.cpp index 042dc27..65535f5 100644 --- a/src/graphics/Gauge.cpp +++ b/src/graphics/Gauge.cpp @@ -12,8 +12,7 @@ using geometry::Point; namespace graphics { // TODO: add start and end "ignore" offsets -void Gauge::Draw(SDL_Surface *dest, Point position, int width, Uint8 level) const { - int fullWidth(width * level / 255); +void Gauge::Draw(SDL_Surface *dest, Point position, int width, int fullWidth) const { SDL_Rect srcRect, destRect; // start