summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-02-23 14:59:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-24 07:25:57 +0100
commit964c70e7e1b193432f6677d0fab589d47313d9c5 (patch)
tree2314e0f49210556375431ca29a19a52f580bb747
parent2b8ce3d62b71ca91df464e26ccc6c6c79d6c886f (diff)
fix tools::Color(ColorAlpha.. constructor
broken since commit 63a68064bb33f180b8a231f7524d99405d910226 Date: Fri Jan 15 14:49:12 2021 +0200 make the Color constructors explicitly specify transparency Change-Id: I0aaee969fc7f11688c52d19357273f9c38d4ee01 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111396 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/tools/color.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index cd472fd472ee..59ac4381de03 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -90,7 +90,7 @@ public:
}
constexpr Color(enum ColorAlphaTag, sal_uInt32 nColor)
- : mValue((nColor & 0xffffff) | (255 - (nColor >> 24)))
+ : mValue((nColor & 0xffffff) | ((255 - (nColor >> 24)) << 24))
{
}