summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-01-15 20:49:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-16 09:00:25 +0100
commitef7f98ff3c73182528995057a3f691a6d1aefdd5 (patch)
treea9048b1b5e477bd682c92b02cca7e9c60141ff83 /drawinglayer
parent647c9de0338350c1b5eff4b9adf08bd06930e36b (diff)
transparency->alpha in BitmapEx
Change-Id: I631f4ca5a2bdcb8c7691a9a8c71d3de15377213b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109390 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive2d/sceneprimitive2d.cxx2
-rw-r--r--drawinglayer/source/processor2d/hittestprocessor2d.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/sceneprimitive2d.cxx b/drawinglayer/source/primitive2d/sceneprimitive2d.cxx
index fa35085e0f1f..b96cca222e7f 100644
--- a/drawinglayer/source/primitive2d/sceneprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/sceneprimitive2d.cxx
@@ -557,7 +557,7 @@ namespace drawinglayer::primitive2d
const sal_Int32 nY(basegfx::fround(fRelativeY * aBitmapSizePixel.Height()));
// try to get a statement about transparency in that pixel
- o_rResult = (0xff != maOldRenderedBitmap.GetTransparency(nX, nY));
+ o_rResult = (0 != maOldRenderedBitmap.GetAlpha(nX, nY));
return true;
}
}
diff --git a/drawinglayer/source/processor2d/hittestprocessor2d.cxx b/drawinglayer/source/processor2d/hittestprocessor2d.cxx
index 65a03548cb1c..04505489c6f2 100644
--- a/drawinglayer/source/processor2d/hittestprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/hittestprocessor2d.cxx
@@ -452,7 +452,7 @@ namespace drawinglayer::processor2d
const sal_Int32 nX(basegfx::fround(aRelativePoint.getX() * rSizePixel.Width()));
const sal_Int32 nY(basegfx::fround(aRelativePoint.getY() * rSizePixel.Height()));
- mbHit = (0xff != aBitmapEx.GetTransparency(nX, nY));
+ mbHit = (0 != aBitmapEx.GetAlpha(nX, nY));
}
}
else