summaryrefslogtreecommitdiff
path: root/vcl/quartz/salgdi.cxx
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-07-17 12:16:58 +0300
committerخالد حسني <khaled@libreoffice.org>2023-07-23 06:01:31 +0200
commitc46f8c356d812230c3a43cd08fb79674be88d9a8 (patch)
tree005a5ee8a4794b590c52b7a7f20015f8fcad1281 /vcl/quartz/salgdi.cxx
parent172b500ccbc8dac0496cc2936a9bcca793c0b594 (diff)
vcl: Simplify AquaGraphics*::drawTextLayout() calling
Take TextRenderModeForResolutionIndependentLayout() from the SalLayout argument instead of passing it separately. Change-Id: I155ea645e401618ad884fdc36c4c1aeab69980ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154516 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/quartz/salgdi.cxx')
-rw-r--r--vcl/quartz/salgdi.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/quartz/salgdi.cxx b/vcl/quartz/salgdi.cxx
index 4af4b28ffa2c..b06e0d41bdbd 100644
--- a/vcl/quartz/salgdi.cxx
+++ b/vcl/quartz/salgdi.cxx
@@ -306,10 +306,10 @@ bool AquaSalGraphics::AddTempDevFont(vcl::font::PhysicalFontCollection*,
void AquaSalGraphics::DrawTextLayout(const GenericSalLayout& rLayout)
{
- mpBackend->drawTextLayout(rLayout, rLayout.GetTextRenderModeForResolutionIndependentLayout());
+ mpBackend->drawTextLayout(rLayout);
}
-void AquaGraphicsBackend::drawTextLayout(const GenericSalLayout& rLayout, bool bTextRenderModeForResolutionIndependentLayout)
+void AquaGraphicsBackend::drawTextLayout(const GenericSalLayout& rLayout)
{
#ifdef IOS
if (!mrShared.checkContext())
@@ -397,7 +397,7 @@ void AquaGraphicsBackend::drawTextLayout(const GenericSalLayout& rLayout, bool b
CGContextSetTextDrawingMode(mrShared.maContextHolder.get(), kCGTextFillStroke);
}
- if (bTextRenderModeForResolutionIndependentLayout)
+ if (rLayout.GetTextRenderModeForResolutionIndependentLayout())
{
CGContextSetAllowsFontSubpixelQuantization(mrShared.maContextHolder.get(), false);
CGContextSetShouldSubpixelQuantizeFonts(mrShared.maContextHolder.get(), false);