diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-25 17:25:04 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-09-26 07:11:28 +0200 |
commit | 22393b8f71d3a46a60ff0be5c938a5da6e5fabb0 (patch) | |
tree | 79a00c5e349dfa353d243674b7e7c117f49320df /vcl/osx/salgdiutils.cxx | |
parent | 460b11312214bb4cf08cecc22a35699e9e7c1889 (diff) |
tdf#160837 macOS: Replace direct access to SalFrame::maGeometry
Replace direct access to the (currently still public)
SalFrame::maGeometry member in macOS code by using the
public getter SalFrame::GetUnmirroredGeometry, or
more specific getters for the height and width
(SalFrame::GetWidth, SalFrame::GetHeight).
Change-Id: Ic14fa480c58b09e5d0dd9ea7042d82c5f82c6eea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173956
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'vcl/osx/salgdiutils.cxx')
-rw-r--r-- | vcl/osx/salgdiutils.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/salgdiutils.cxx b/vcl/osx/salgdiutils.cxx index d7f8ec48eaf0..bbdbe64ac79f 100644 --- a/vcl/osx/salgdiutils.cxx +++ b/vcl/osx/salgdiutils.cxx @@ -206,8 +206,8 @@ bool AquaSharedAttributes::checkContext() { if (mbWindow && mpFrame && (mpFrame->getNSWindow() || Application::IsBitmapRendering())) { - const unsigned int nWidth = mpFrame->maGeometry.width(); - const unsigned int nHeight = mpFrame->maGeometry.height(); + const unsigned int nWidth = mpFrame->GetWidth(); + const unsigned int nHeight = mpFrame->GetHeight(); const float fScale = sal::aqua::getWindowScaling(); CGLayerRef rReleaseLayer = nullptr; |