summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-11 08:54:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-12 17:38:53 +0100
commitd765ec2295d12ccde1fb25aa92c5d821de748add (patch)
treec2f806389478df23b78319c6043971f92995851c /tools
parenta1d6701105456248f6ff39766a6699f26a8f3d60 (diff)
transparency->alpha in tools::Color
this just changes the Get/Set methods, the constructor and internal representation of Color is not changed. Change-Id: Idb6e07cc08bbaa5bd55b6bd4b585e648aef507b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109074 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/qa/cppunit/test_color.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qa/cppunit/test_color.cxx b/tools/qa/cppunit/test_color.cxx
index 8ba4ea5839ed..567aac90a03c 100644
--- a/tools/qa/cppunit/test_color.cxx
+++ b/tools/qa/cppunit/test_color.cxx
@@ -63,7 +63,7 @@ void Test::testVariables()
aColor.B = 0x44;
CPPUNIT_ASSERT_EQUAL(int(0x11223344), int(aColor.mValue));
- aColor.SetTransparency(0x77);
+ aColor.SetAlpha(255 - 0x77);
CPPUNIT_ASSERT_EQUAL(int(0x77223344), int(aColor.mValue));
aColor.SetRed(0x88);