From f27dbf115c57fba3be246ec1e7f2e74758225e79 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 26 Oct 2017 18:11:31 +0000 Subject: more readable conversion of paper size from millimeters to PostScript basic units, also slightly more precise --- term_ps.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'term_ps.c') diff --git a/term_ps.c b/term_ps.c index 8677cbbe..1fa6ce48 100644 --- a/term_ps.c +++ b/term_ps.c @@ -1,4 +1,4 @@ -/* $Id: term_ps.c,v 1.87 2017/10/25 20:48:48 schwarze Exp $ */ +/* $Id: term_ps.c,v 1.88 2017/10/26 18:11:31 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze @@ -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. */ -- cgit v1.2.3