From 9c6519398fb5efbe662ae6f9abfffa80ef821a63 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Wed, 13 Feb 2019 21:37:45 +0100 Subject: remove GetLuminance from BitmapReadAccess MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's not really that important shortcut function as the function is used only twice in the whole code base. Change-Id: Idf25ded6320f766bc66beec0ee272a62765303ba Reviewed-on: https://gerrit.libreoffice.org/67792 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- svx/source/svdraw/svdoashp.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 0e9435871639..0a1539c570b4 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -361,7 +361,8 @@ static SdrObject* ImpCreateShadowObjectClone(const SdrObject& rOriginal, const S { for(long x(0); x < pReadAccess->Width(); x++) { - sal_uInt16 nLuminance(static_cast(pReadAccess->GetLuminance(y, x)) + 1); + const BitmapColor aColor = pReadAccess->GetColor(y, x); + sal_uInt16 nLuminance(static_cast(aColor.GetLuminance()) + 1); const Color aDestColor( static_cast((nLuminance * static_cast(aShadowColor.GetRed())) >> 8), static_cast((nLuminance * static_cast(aShadowColor.GetGreen())) >> 8), -- cgit