Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!texbell!bigtex!qiclab!sopwith!snoopy From: snoopy@sopwith.UUCP (Snoopy) Newsgroups: gnu.ghostscript.bug Subject: Re: making GS write to big X window Keywords: ghostscript X_Windows_11_R3 Suns Message-ID: <145@sopwith.UUCP> Date: 26 Mar 89 03:42:16 GMT References: <552@kl-cs.UUCP> Reply-To: snoopy@sopwith.UUCP (Snoopy) Organization: The Daisy Hill Puppy Farm Lines: 35 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 _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