ref: 635ecc2c38e0b2c644bcad9e5b9252b0624d77d2
parent: e67818ce2e673f3a7f7765666219324640311586
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Aug 29 07:55:08 EDT 2014
post: round down iso paper dimensions in millimetres
--- a/post.c
+++ b/post.c
@@ -379,6 +379,8 @@
n = s[1] - '0';
ps_pagewidth = ((n & 1) ? d2 : d1) >> ((n + 1) >> 1);
ps_pageheight = ((n & 1) ? d1 : d2) >> (n >> 1);
+ ps_pagewidth -= ps_pagewidth % 10;
+ ps_pageheight -= ps_pageheight % 10;
}
static char *usage =