summaryrefslogtreecommitdiff
tag namelibreoffice-5.2.4.2-buildfix1 (37e805ca95012ef0f69d011dfd155e9caad0a039)
tag date2016-12-19 11:21:52 +0100
tagged byjan Iversen <jani@documentfoundation.org>
tagged objectcommit 0b81499b99...
Tag libreoffice-5.2.4.2-buildfix1
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAABCgAGBQJYV7TAAAoJEPQ0oe+v7q6jbUUP/ivxf4y1g9c14yMqNUPov3xg 7W7Sp0G2VipXXI3P4IycmcLntcWkpd4c94Fzu7J1IadhWimev746R0kr8pDFgZKC 8G+LR0158OcK+FXl3M1KnIlh5+6DYeO/tXDKrgkB6046eofqkugencZtPGzSpgmK yd2nG234oNTA86FtKm7yqVcbuQdLrrQGHIa2ABa7vuUsBR0z02enWgBL9wr65PgP 0e5PE6QEkj/rjXnJz+R41C+apLiIFXvl3LhqMlU0RMHJVRd13207/qyonxsfzs0q 8XqdTWaZC8/oisx+usWZ6XeSSdgOT/TTz16JC6ksnN2mg7QIgf+VjSq9zzu0LZ6i 8DeAZpQZlgkQiSA9vZBol59ybTVkj2GaE80H00hC6TImQfz/JB1/L1tzPPdDktgc 7mrwhpLAgdIVUpI6NXLaHv6A0rARR6aeaW0jaUuoAWLrqKPxV/LUsqehP2lZEcCR 1tf4gW2W90QQgDnb7NWlB9//DKCZqYG/ndO5qjwIItjSeEPSvKQtj/FlHP2IjABc ccYd/elgbwZjbVMWIsO1QoGWoQvVSN9oAk6R9564Fkm6cIyonwDSqF5LbxFk4zvT JvKTo0lxbzm5y3szZ7e/Ewf/o1+KhY6cukwrYTj9uba2Hjp1IXcHadB6QMxF5D3x +TLlHFyVHjB7VsiQcr1F =4cjm -----END PGP SIGNATURE-----
ngl-vcl-text LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/vcl/inc/bitmap
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-01-07 09:46:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-23 11:20:35 +0100
commitc181e510c5f5e74f1f6824b64637849aace9ae63 (patch)
tree31a658cbe4d8e1de92a1dcd39cd649a93f74685b /vcl/inc/bitmap
parentd042b39c2f30246b51cba65400552c25a6dd5105 (diff)
convert internal bitmap formats transparency->alpha
Image formats and graphics APIs use alpha, not transparency, so change our internal formats and data structures to work directly with alpha, so we don't need to modify data before we push it to graphics APIs. Change-Id: I537f77f79e83876be11d787901df42710d190842 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108919 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/inc/bitmap')
-rw-r--r--vcl/inc/bitmap/ScanlineTools.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/inc/bitmap/ScanlineTools.hxx b/vcl/inc/bitmap/ScanlineTools.hxx
index c343cf34f61e..98e702549f2b 100644
--- a/vcl/inc/bitmap/ScanlineTools.hxx
+++ b/vcl/inc/bitmap/ScanlineTools.hxx
@@ -46,7 +46,7 @@ public:
virtual void writePixel(Color nColor) override
{
- *pData++ = 255 - nColor.GetAlpha();
+ *pData++ = nColor.GetAlpha();
*pData++ = nColor.GetRed();
*pData++ = nColor.GetGreen();
*pData++ = nColor.GetBlue();