From b9e4bb65bcd7600f8e9150aa18ecd2527646ae05 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 30 Oct 2018 15:12:14 +0200 Subject: Add comment about AquaSalGraphics::GetResolution() returning a DPI of 96 Change-Id: I3b89cb6c24c263a1a8ea4e249ab24256a7d6f3f7 --- vcl/quartz/salgdicommon.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vcl/quartz') 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 } -- cgit