[Libreoffice-commits] core.git: vcl/quartz
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 30 13:48:10 UTC 2018
vcl/quartz/salgdicommon.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit b9e4bb65bcd7600f8e9150aa18ecd2527646ae05
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Oct 30 15:12:14 2018 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Oct 30 15:47:28 2018 +0200
Add comment about AquaSalGraphics::GetResolution() returning a DPI of 96
Change-Id: I3b89cb6c24c263a1a8ea4e249ab24256a7d6f3f7
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
}
More information about the Libreoffice-commits
mailing list