summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-10-30 15:12:14 +0200
committerTor Lillqvist <tml@collabora.com>2018-10-30 15:47:28 +0200
commitb9e4bb65bcd7600f8e9150aa18ecd2527646ae05 (patch)
tree293164ecec0d6103e10a8cd32f1dab7fef1d4abb /vcl
parent61aa2f2e7e89268bab174447016f3a3e14a541df (diff)
Add comment about AquaSalGraphics::GetResolution() returning a DPI of 96
Change-Id: I3b89cb6c24c263a1a8ea4e249ab24256a7d6f3f7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salgdicommon.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 549ad3e33f5b..4a8419b8b20d 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.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.
*
@@ -1401,6 +1401,10 @@ void AquaSalGraphics::GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY )
rDPIX = mnRealDPIX;
rDPIY = mnRealDPIY;
#else
+ // This *must* be 96 or else the iOS app will behave very nadly (tiles are scaled wrongly and
+ // don't match each others at their boundaries, and other issues). But *why* it must be 96 I
+ // have no idea. The commit that changed it to 96 from (the arbitrary) 200 did not say. If you
+ // know where else 96 is explicitly or implicitly hard-coded, please modify this comment.
rDPIX = rDPIY = 96;
#endif
}