gerry@cs.keele.ac.uk (Gerry Pratt) (03/23/89)
Hi, With ghostscript 1.2, I altered the line in gdevx.c which read 640, 350, /* x and y extent */ to 700, 900, /* x and y extent */ and on a Sun 3/50 (SunOS 3.5) running the X11R3 server it now opens a 700x900 window OK - but the postscript still draws in a 640x350 area in the top left hand corner. Could someone hazard a guess at why this is? any help appreciated, gerry pratt - workstation support - university of keele newcastle - staffordshire - st5 5bg - ENGLAND email : gerry@uk.ac.keele.seq1
snoopy@sopwith.UUCP (Snoopy) (03/26/89)
In article <552@kl-cs.UUCP> gerry@cs.keele.ac.uk (Gerry Pratt) writes: |With ghostscript 1.2, I altered the line in gdevx.c which read | | 640, 350, /* x and y extent */ | |to | | 700, 900, /* x and y extent */ | |and on a Sun 3/50 (SunOS 3.5) running the X11R3 server it now |opens a 700x900 window OK - but the postscript still draws in a |640x350 area in the top left hand corner. | |Could someone hazard a guess at why this is? You might want to look at device.height and device.width in ghost.ps, which ghostscript reads at startup. My copy says 792 by 612 assuming my calculator is working. I changed mine (not X-windows, but it should work everywhere) so that everything gets its idea of the size from ghost.ps. That way everything is consistant, and you can change the size by editing ghost.ps (seconds) rather than recompiling (grind, grind). (I'm in the process of sending fixes/enhancements to Peter so that he can include then in a future release if he likes them.) BTW, have you been getting my mail, Peter? I'm a bit confused about the arguments to <device>_draw_line(). It appears that x0, y0, and x1 are included, but y1 is excluded. This seems a bit unsymetrical to me. _____ /_____\ Snoopy "My dot-matrix does Postscript." /_______\ |___| tekecs.wv.tek.com!sopwith!snoopy qiclab!sopwith!snoopy |___| sun!nosun!illian!sopwith!snoopy parsely!sopwith!snoopy