]> git.localhorst.tv Git - l2e.git/blobdiff - src/graphics/Gauge.cpp
changed gauge level interpretation
[l2e.git] / src / graphics / Gauge.cpp
index 042dc2704b4705e7c152926582ce85924f3ce0ee..65535f5d2436f4b0664c430370a2e4bb5f032093 100644 (file)
@@ -12,8 +12,7 @@ using geometry::Point;
 namespace graphics {
 
 // TODO: add start and end "ignore" offsets
-void Gauge::Draw(SDL_Surface *dest, Point<int> position, int width, Uint8 level) const {
-       int fullWidth(width * level / 255);
+void Gauge::Draw(SDL_Surface *dest, Point<int> position, int width, int fullWidth) const {
        SDL_Rect srcRect, destRect;
 
        // start