ref: 04e573dc6d38048eb0eaf997841f09f8118e1687
parent: 486914826342df42eee2fa3a4ab3adb905938976
author: Ali Gholami Rudi <ali@rudi.ir>
date: Sat Sep 7 17:19:35 EDT 2013
ps: define resolution as output device resolution
--- a/ps.c
+++ b/ps.c
@@ -26,9 +26,7 @@
static char *prolog =
"/linewidth .4 def\n"
- "/resolution 720 def\n"
"/pagesize [612 792] def\n"
- "/inch {72 mul} bind def\n"
"\n"
"/setup {\n"
" counttomark 2 idiv {def} repeat pop\n"
@@ -131,6 +129,7 @@
out("%%%%EndComments\n");
out("%%%%BeginProlog\n");
+ out("/resolution %d def\n", dev_res);
out("%s", prolog);
out("%%%%EndProlog\n");
out("%%%%BeginSetup\n");