summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-12-21 00:06:11 +0200
committerTor Lillqvist <tml@collabora.com>2018-12-21 00:08:13 +0200
commit1cbcaebc524a615cbb2aa2c0221db8f743ac5640 (patch)
treeff14ba97cd8adce0f86c74c8e80670dc1e6e8ea1
parent2e263affe54f8c3cdcbcea5fc4f0fb0b5b958b00 (diff)
Add follow-up comment with guess why it must be 96
Change-Id: Ifa725c40c5756ba7999423a782180c1ac3901d30
-rw-r--r--vcl/quartz/salgdicommon.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx
index 535bfa3c32b0..53f0e2706e63 100644
--- a/vcl/quartz/salgdicommon.cxx
+++ b/vcl/quartz/salgdicommon.cxx
@@ -1407,6 +1407,11 @@ void AquaSalGraphics::GetResolution( sal_Int32& rDPIX, sal_Int32& rDPIY )
// 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.
+
+ // Follow-up: It might be this: in 'online', loleaflet/src/map/Map.js:
+ // 15 = 1440 twips-per-inch / 96 dpi.
+ // Chosen to match previous hardcoded value of 3840 for
+ // the current tile pixel size of 256.
rDPIX = rDPIY = 96;
#endif
}