From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 1908b1ac for ; Thu, 26 Oct 2017 13:12:02 -0500 (EST) Date: Thu, 26 Oct 2017 13:12:01 -0500 (EST) Message-Id: <2068121432709491580.enqueue@fantadrom.bsd.lv> X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: more readable conversion of paper size from millimeters to X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- more readable conversion of paper size from millimeters to PostScript basic units, also slightly more precise Modified Files: -------------- mandoc: term_ps.c Revision Data ------------- Index: term_ps.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/term_ps.c,v retrieving revision 1.87 retrieving revision 1.88 diff -Lterm_ps.c -Lterm_ps.c -u -p -r1.87 -r1.88 --- term_ps.c +++ term_ps.c @@ -596,8 +596,8 @@ pspdf_alloc(const struct manoutput *outo /* 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. */ -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv