Tech Insider					     Technology and Trends

			      USENET Archives

From: (Al Petrofsky)
Subject: bug in display of interpolated images on X11 device
Date: 1997/03/28
Message-ID: <>#1/1
X-Deja-AN: 229396559
X-Server-Date: 28 Mar 1997 09:40:58 GMT
Organization: The Vegetable Liberation Front
x-gateway: relay5.UU.NET from bug-ghostscript to gnu.ghostscript.bug; Sun, 30 Mar 1997 01:53:26 EST
Newsgroups: gnu.ghostscript.bug

Ghostscript version: 4.03

Where you got Ghostscript:

Hardware you are using: i586 PC

Operating system you are using: Debian 1.2 Linux, kernel 2.0.27

(If you compiled Ghostscript yourself)
C compiler you are using (including compiler version): gcc

Environment variables (GS_DEVICE, GS_FONTPATH, GS_LIB, GS_OPTIONS): 

Command line: gs

URL or FTP location of test file(s), if relevant:

(Use as much space as you need for the remaining items.)

   Segmentation fault in XPutImage, called from x_copy_color in gdevx.c

   I am using XFree86 3.2 (X11R6.1) libraries and server on a 15-bit
   truecolor display.

Suggested fix (if any):

       I'm not sure what the fix is, but the following code (from
    x_copy_color in gdevx.c) creates a malformed image just before the
    call to XPutImage:

	  {    xdev->image.width = raster << 3;
	       xdev->image.height = h;
	       xdev->image.format = ZPixmap;
	       xdev-> = (char *)base;
	       xdev->image.depth = depth;
	       xdev->image.bytes_per_line = raster;
	       xdev->image.bits_per_pixel = depth;
	       XPutImage(xdev->dpy, xdev->dest, xdev->gc, &xdev->image,
			 sourcex, 0, x, y, w, h);
      This makes image.width eight times as big as image.bytes_per_line,
    which only makes sense if depth is 1.  The width should be at most
    (bytes_per_line * 8 / bits_per_pixel).

Other comments:

			        About USENET

USENET (Users’ Network) was a bulletin board shared among many computer
systems around the world. USENET was a logical network, sitting on top
of several physical networks, among them UUCP, BLICN, BERKNET, X.25, and
the ARPANET. Sites on USENET included many universities, private companies
and research organizations. See USENET Archives.

		       SCO Files Lawsuit Against IBM

March 7, 2003 - The SCO Group filed legal action against IBM in the State 
Court of Utah for trade secrets misappropriation, tortious interference, 
unfair competition and breach of contract. The complaint alleges that IBM 
made concentrated efforts to improperly destroy the economic value of 
UNIX, particularly UNIX on Intel, to benefit IBM's Linux services 
business. See SCO v IBM.

The materials and information included in this website may only be used
for purposes such as criticism, review, private study, scholarship, or

Electronic mail:			       WorldWideWeb: