🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.ghostscript.bug
1 messages
1 total messages Started by L. Peter Deutsch Fri, 02 Oct 1992 00:54
Garbled output with Tseng driver
#449
Author: L. Peter Deutsch
Date: Fri, 02 Oct 1992 00:54
37 lines
2279 bytes
A user writes:

> When fed PS output from the MS Windows PSCRIPT.DRV postscript driver
> version 3.53, and using the Tseng output device, gs386.exe from the gs
> 2.5.2 distribution produces strongly skewed and illegible displays that
> use only about the top 60% of the screen.  This appears to happen
> regardless of the originating Windows program -- I get the same
> behaviour when output is generated by Windows Write, WordPerfect for
> Windows, and other programs.  The problem exists regardless of whether
> the -g switch is used, and regardless of its setting if it is used.
> 
> gswin.exe is able to handle these same files correctly.
> 
> I am able to view other PS files without any problem, using both gs386
> and gswin.

This is a bug resulting from the "new and improved" handling of paper
size in Ghostscript 2.5.2.  It only affects SuperVGA drivers in
gs.exe and gs386.exe, not gswin.exe, and it doesn't affect the VESA
driver in gs.exe.  To fix it, move the statement
	fb_dev->raster = fb_dev->width;
from line 76 of gdevsvga.c (i.e., the first line of the
svga_find_mode procedure) to just above the
			return 0;
which is currently line 83.

A workaround that doesn't require recompiling Ghostscript is to find
the definition of the .setpagesize procedure in gs_statd.ps (lines
149 through 155) and replace it with the following:
	/.setpagesize {pop pop} bind def
This will cause all pages to be clipped as though they were U.S.
letter-size, so this workaround should not be used if you are going
to be printing on A4 paper, for example.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; voice 415-322-0103 ; fax 322-1734
    "Implementation is the sincerest form of flattery."    new--->^^^^^^^^^^^^
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads