summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-10-26 18:11:13 +0000
committerschwarze <schwarze@openbsd.org>2017-10-26 18:11:13 +0000
commit353761a3f11b34d473dca13c96b66dad3193cb0c (patch)
treedf65d74695435b4f9ee99fb3cff02d48b8a5655d
parentReplace macro `IP6_REASS_MBUF' with direct use of field `ip6af_m'. (diff)
downloadwireguard-openbsd-353761a3f11b34d473dca13c96b66dad3193cb0c.tar.xz
wireguard-openbsd-353761a3f11b34d473dca13c96b66dad3193cb0c.zip
more readable conversion of paper size from millimeters to PostScript
basic units, also slightly more precise
-rw-r--r--usr.bin/mandoc/term_ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/term_ps.c b/usr.bin/mandoc/term_ps.c
index 27d439ff05d..25c59dea62c 100644
--- a/usr.bin/mandoc/term_ps.c
+++ b/usr.bin/mandoc/term_ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: term_ps.c,v 1.51 2017/10/25 20:48:17 schwarze Exp $ */
+/* $OpenBSD: term_ps.c,v 1.52 2017/10/26 18:11:13 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -592,8 +592,8 @@ pspdf_alloc(const struct manoutput *outopts)
/* Remember millimetres -> AFM units. */
- pagex = PNT2AFM(p, ((double)pagex * 2.834));
- pagey = PNT2AFM(p, ((double)pagey * 2.834));
+ pagex = PNT2AFM(p, ((double)pagex * 72.0 / 25.4));
+ pagey = PNT2AFM(p, ((double)pagey * 72.0 / 25.4));
/* Margins are 1/9 the page x and y. */