summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-12 14:34:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-15 17:15:23 +0100
commitbfc7706b4344ec9b9b300213147f2b874ce21c21 (patch)
treedf3a78cfd47f09ee5b33a9a24eca07b6e982d100 /vcl/osx
parentbde51945e0624b7ce5d02144bbb60044db3284ab (diff)
DPI values are generally represented as sal_Int32 in VCL
cf. e.g. pure virtual SalGraphics::GetResolution (vcl/inc/salgdi.hxx) Change-Id: I77d54ad0a7b80cf8839b253c14ce468ac4e16c84 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105748 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salframe.cxx2
-rw-r--r--vcl/osx/salprn.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index 1ffb1b46dccd..76cd52e65541 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1189,7 +1189,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
return aRet;
}
-static vcl::Font getFont( NSFont* pFont, long nDPIY, const vcl::Font& rDefault )
+static vcl::Font getFont( NSFont* pFont, sal_Int32 nDPIY, const vcl::Font& rDefault )
{
vcl::Font aResult( rDefault );
if( pFont )
diff --git a/vcl/osx/salprn.cxx b/vcl/osx/salprn.cxx
index c0d05fde9fb5..7da42376569f 100644
--- a/vcl/osx/salprn.cxx
+++ b/vcl/osx/salprn.cxx
@@ -101,7 +101,7 @@ void AquaSalInfoPrinter::SetupPrinterGraphics( CGContextRef i_rContext ) const
if( mpPrintInfo )
{
// FIXME: get printer resolution
- long nDPIX = 720, nDPIY = 720;
+ sal_Int32 nDPIX = 720, nDPIY = 720;
NSSize aPaperSize = [mpPrintInfo paperSize];
NSRect aImageRect = [mpPrintInfo imageablePageBounds];