summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-10-26 18:11:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-10-26 18:11:31 +0000
commit64c89e5af1371c40499295c7f8f9ceac36bae8d4 (patch)
treeaa5d7807fa613780714a1d0ce0874525234a02f5
parent702760014fafcaf226d5fe8de9be99b2f291f58a (diff)
downloadmandoc-64c89e5af1371c40499295c7f8f9ceac36bae8d4.tar.gz
more readable conversion of paper size from millimeters to PostScript
basic units, also slightly more precise
-rw-r--r--term_ps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term_ps.c b/term_ps.c
index d59f4746..7e39fbcb 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -596,8 +596,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. */