diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-01-11 19:51:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-01-12 15:08:36 +0100 |
commit | be30c734bf420f9dd890906c84d2b4460385a2ba (patch) | |
tree | 5b6219b8f666e0493ad5961bdca7b132f63b3d85 /vcl/quartz | |
parent | 9a850dd9f3c221660b6259bdfd64a77343f2256c (diff) |
keep positions as DeviceCoordinate within SalLayout
Change-Id: I20bbb0e252ffd09901f587599430e715dbe977b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128300
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r-- | vcl/quartz/salgdi.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx index 51ffda669832..5a1051965b6c 100644 --- a/vcl/quartz/salgdi.cxx +++ b/vcl/quartz/salgdi.cxx @@ -386,7 +386,7 @@ void AquaGraphicsBackend::drawTextLayout(const GenericSalLayout& rLayout) CTFontRef pFont = static_cast<CTFontRef>(CFDictionaryGetValue(rStyle.GetStyleDict(), kCTFontAttributeName)); CGAffineTransform aRotMatrix = CGAffineTransformMakeRotation(-rStyle.mfFontRotation); - Point aPos; + DevicePoint aPos; const GlyphItem* pGlyph; std::vector<CGGlyph> aGlyphIds; std::vector<CGPoint> aGlyphPos; @@ -394,7 +394,7 @@ void AquaGraphicsBackend::drawTextLayout(const GenericSalLayout& rLayout) int nStart = 0; while (rLayout.GetNextGlyph(&pGlyph, aPos, nStart)) { - CGPoint aGCPos = CGPointMake(aPos.X(), -aPos.Y()); + CGPoint aGCPos = CGPointMake(aPos.getX(), -aPos.getY()); // Whether the glyph should be upright in vertical mode or not bool bUprightGlyph = false; |