aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/ThemeNew.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index d32a772edc..45beb7625e 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -585,6 +585,7 @@ inline uint8 calcGradient(uint8 start, uint8 end, int pos, int max) {
OverlayColor calcGradient(OverlayColor start, OverlayColor end, int pos, int max, uint factor = 1) {
max /= factor;
+ pos *= factor;
if (pos > max) {
pos = max;
}