summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2020-12-30 15:08:20 +0200
committerTor Lillqvist <tml@collabora.com>2020-12-30 15:09:02 +0200
commit2e42a85fe0d7a1a7d0a1778f1a6d3625fc3c9d79 (patch)
tree67403c6d6edf612a87a48b4cdd270cbc8e83f026 /vcl
parent0e6e395abf4f9f62624be58630853a3240dc42a3 (diff)
tdf#138122: Add comment wondering what the code does
Change-Id: I0caea1297404e7970571085cc787ff23e614e500
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salvd.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/quartz/salvd.cxx b/vcl/quartz/salvd.cxx
index 6462a51573ce..1e6e5b2536d0 100644
--- a/vcl/quartz/salvd.cxx
+++ b/vcl/quartz/salvd.cxx
@@ -1,4 +1,4 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
@@ -295,6 +295,11 @@ bool AquaSalVirtualDevice::SetSize( tools::Long nDX, tools::Long nDY )
{
// get the matching Quartz context
CGContextRef xDrawContext = CGLayerGetContext( maLayer.get() );
+
+ // Here we pass the CGLayerRef that the CGLayerHolder maLayer holds as the first parameter
+ // to SetVirDevGraphics(). That parameter is of type CGLayerHolder, so what we actually pass
+ // is an implicitly constructed *separate* CGLayerHolder. Is that what we want? No idea.
+ // Possibly we could pass just maLayer as such? But doing that does not fix tdf#138122.
mpGraphics->SetVirDevGraphics(maLayer.get(), xDrawContext, mnBitmapDepth);
}