aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2006-01-28 23:56:12 +0000
committerJohannes Schickel2006-01-28 23:56:12 +0000
commitf404f6ffaf3e112d6d77acbd7bac5ba7f76c6194 (patch)
tree4ef18549245e2f64bb7d86efddb79c2f4389bfb4
parent4b23285098f806bef0e860e4f41f9b85732ac651 (diff)
downloadscummvm-rg350-f404f6ffaf3e112d6d77acbd7bac5ba7f76c6194.tar.gz
scummvm-rg350-f404f6ffaf3e112d6d77acbd7bac5ba7f76c6194.tar.bz2
scummvm-rg350-f404f6ffaf3e112d6d77acbd7bac5ba7f76c6194.zip
Changed calcGradient again, should look nicer now.
svn-id: r20280
-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;
}