aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/style.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/style.cc b/dw/style.cc
index a9ce7544..4a8325d8 100644
--- a/dw/style.cc
+++ b/dw/style.cc
@@ -1203,11 +1203,11 @@ void calcBackgroundRelatedValues (StyleImage *backgroundImage,
*origX = xRef +
(isPerLength (backgroundPositionX) ?
- perLengthVal (backgroundPositionX) * (widthRef - imgWidth) :
+ multiplyWithPerLength (widthRef - imgWidth, backgroundPositionX) :
absLengthVal (backgroundPositionX));
*origY = yRef +
(isPerLength (backgroundPositionY) ?
- perLengthVal (backgroundPositionY) * (heightRef - imgHeight) :
+ multiplyWithPerLength (heightRef - imgHeight, backgroundPositionY) :
absLengthVal (backgroundPositionY));
*tileX1 = xDraw < *origX ?