diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-02-13 21:37:45 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-02-13 22:39:50 +0100 |
commit | 9c6519398fb5efbe662ae6f9abfffa80ef821a63 (patch) | |
tree | 45af58ab6842c31226b18f3894815d66abe3d4cc /svx | |
parent | b43976324f4f8e003b80ce422eb393010d8a101e (diff) |
remove GetLuminance from BitmapReadAccess
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 <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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<sal_uInt16>(pReadAccess->GetLuminance(y, x)) + 1); + const BitmapColor aColor = pReadAccess->GetColor(y, x); + sal_uInt16 nLuminance(static_cast<sal_uInt16>(aColor.GetLuminance()) + 1); const Color aDestColor( static_cast<sal_uInt8>((nLuminance * static_cast<sal_uInt16>(aShadowColor.GetRed())) >> 8), static_cast<sal_uInt8>((nLuminance * static_cast<sal_uInt16>(aShadowColor.GetGreen())) >> 8), |