diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-27 11:10:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-27 14:26:58 +0100 |
commit | 092ec538045f443dce3e45ff73064eb46d0a4fc0 (patch) | |
tree | 5c5424c7be3315401f2f37a2f6a7bf57eff52ec9 /vcl/win | |
parent | 4ca0a15af2a1bd9386f5a0d93e9616cf1d818535 (diff) |
DWRITE_GLYPH_METRICS members are of INT32 and UINT32 types
Change-Id: Ie09e0150bf73efd552e3a3b455ffc395d6b6370c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106754
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/DWriteTextRenderer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/win/gdi/DWriteTextRenderer.cxx b/vcl/win/gdi/DWriteTextRenderer.cxx index 185925ae7967..abf9be7d5f86 100644 --- a/vcl/win/gdi/DWriteTextRenderer.cxx +++ b/vcl/win/gdi/DWriteTextRenderer.cxx @@ -349,10 +349,10 @@ std::vector<tools::Rectangle> D2DWriteTextOutRenderer::GetGlyphInkBoxes(uint16_t auto pOut = aOut.begin(); for (auto &m : metrics) { - const long left = m.leftSideBearing, - top = m.topSideBearing - m.verticalOriginY, - right = m.advanceWidth - m.rightSideBearing, - bottom = INT32(m.advanceHeight) - m.verticalOriginY - m.bottomSideBearing; + const auto left = m.leftSideBearing; + const auto top = m.topSideBearing - m.verticalOriginY; + const auto right = m.advanceWidth - m.rightSideBearing; + const auto bottom = INT32(m.advanceHeight) - m.verticalOriginY - m.bottomSideBearing; // Scale to screen space. pOut->SetLeft( std::floor(left * mlfEmHeight / aFontMetrics.designUnitsPerEm) ); |