diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-07-16 18:20:14 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-07-23 06:00:49 +0200 |
commit | 8e9b65c874d99e3302a9e7dfd0c7a30963526bc2 (patch) | |
tree | 51edbc4ab2f7c5b7527897f20f977bf5478fe976 /vcl/source/outdev/text.cxx | |
parent | 2a19b5fb9af4b0d6c8903ce64ce67ccb536276e1 (diff) |
vcl: rename NaturalDXArray to DXArray
The unnatural DXArray is gone for a while now.
Change-Id: I6cda530f332839e49aa91da2d5e347401c4d159d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154502
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/source/outdev/text.cxx')
-rw-r--r-- | vcl/source/outdev/text.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index 2c5f9aae06aa..61d965a28b68 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -1363,10 +1363,10 @@ std::unique_ptr<SalLayout> OutputDevice::ImplLayout(const OUString& rOrigStr, nPixelWidth, flags, pLayoutCache); DeviceCoordinate nEndGlyphCoord(0); - std::unique_ptr<double[]> xNaturalDXPixelArray; + std::unique_ptr<double[]> xDXPixelArray; if( !pDXArray.empty() ) { - xNaturalDXPixelArray.reset(new double[nLen]); + xDXPixelArray.reset(new double[nLen]); if (mbMap) { @@ -1374,16 +1374,16 @@ std::unique_ptr<SalLayout> OutputDevice::ImplLayout(const OUString& rOrigStr, // keeping accuracy for lower levels int nSubPixels = pDXArray.get_factor(); for (int i = 0; i < nLen; ++i) - xNaturalDXPixelArray[i] = ImplLogicWidthToDeviceSubPixel(pDXArray.get_subunit(i)) / nSubPixels; + xDXPixelArray[i] = ImplLogicWidthToDeviceSubPixel(pDXArray.get_subunit(i)) / nSubPixels; } else { for(int i = 0; i < nLen; ++i) - xNaturalDXPixelArray[i] = pDXArray.get(i); + xDXPixelArray[i] = pDXArray.get(i); } - aLayoutArgs.SetNaturalDXArray(xNaturalDXPixelArray.get()); - nEndGlyphCoord = std::lround(xNaturalDXPixelArray[nLen - 1]); + aLayoutArgs.SetDXArray(xDXPixelArray.get()); + nEndGlyphCoord = std::lround(xDXPixelArray[nLen - 1]); } if (!pKashidaArray.empty()) |