summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/theme.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 8d447c2f..f42b0fc2 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -140,9 +140,7 @@ gcn::Color Theme::getProgressColor(int type, float progress)
DyePalette *dye = mInstance->mProgressColors[type];
int color[3] = {0, 0, 0};
- int intensity = (int) (255 * progress);
-
- dye->getColor(intensity, color);
+ dye->getColor(progress, color);
return gcn::Color(color[0], color[1], color[2]);
}