diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-15 20:15:27 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-15 20:15:27 +0200 |
commit | a2ac4b3756ab2cc799058b669137cb19e8267bf8 (patch) | |
tree | d02e734be607467338db2bb890f21cd3c58a7de1 /dw/style.hh | |
parent | ca0cb1510bbb7ab26de2d9bb24674aa43b6e6a54 (diff) |
RTFL.
Diffstat (limited to 'dw/style.hh')
-rw-r--r-- | dw/style.hh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dw/style.hh b/dw/style.hh index da214ca1..578e65c0 100644 --- a/dw/style.hh +++ b/dw/style.hh @@ -435,7 +435,8 @@ inline int absLengthVal(Length l) { return l >> 2; } * When possible, do not use this function directly; it may be removed * soon. Instead, use multiplyWithPerLength or multiplyWithPerLengthRounded. */ -inline double perLengthVal(Length l) { return (double)(l & ~3) / (1 << 18); } +inline double perLengthVal_useThisOnlyForDebugging(Length l) +{ return (double)(l & ~3) / (1 << 18); } /** \brief Returns the value of a relative length, as a float. * @@ -450,7 +451,7 @@ inline double relLengthVal(Length l) { return (double)(l & ~3) / (1 << 18); } * Use this instead of perLengthVal, when possible. */ inline int multiplyWithPerLength(int x, Length l) { - return x * perLengthVal(l); + return x * perLengthVal_useThisOnlyForDebugging (l); } /** @@ -459,8 +460,8 @@ inline int multiplyWithPerLength(int x, Length l) { * * (This function exists for backward compatibility.) */ -inline int multiplyWithPerLengthRounded (int x, Length l) { - return lout::misc::roundInt (x * perLengthVal(l)); +inline int multiplyWithPerLengthRounded(int x, Length l) { + return lout::misc::roundInt (x * perLengthVal_useThisOnlyForDebugging (l)); } inline int multiplyWithRelLength(int x, Length l) { |