diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-10-26 18:11:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-10-26 18:11:31 +0000 |
commit | 64c89e5af1371c40499295c7f8f9ceac36bae8d4 (patch) | |
tree | aa5d7807fa613780714a1d0ce0874525234a02f5 | |
parent | 702760014fafcaf226d5fe8de9be99b2f291f58a (diff) | |
download | mandoc-64c89e5af1371c40499295c7f8f9ceac36bae8d4.tar.gz |
more readable conversion of paper size from millimeters to PostScript
basic units, also slightly more precise
-rw-r--r-- | term_ps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |