🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #25064

Re: Fixes to ximpv for Sun 3?

#25064
From: Jeff Schwab
Date: Mon, 09 Mar 1987 03:47
50 lines
1417 bytes
	In order to get ximpv to run on our Suns (running 3.0),
	we had to make two small changes.  The first is in impv.c,
	routine BitsPut():

		.
		.
		.
		for (ptr = outbuf, i = delta;
		     --i >= 0;
		     data += linesize, ptr += per)
#ifdef sun
			swab(data, ptr, per);
#else sun
			bcopy(data, ptr, per);
#endif sun
		XBitmapBitsPut(Win, dstx, dsty, width, delta, outbuf,
				forepix, backpix, NULL, GXcopy, AllPlanes);
		.
		.
		.

	The second change is in imPdefs.h:

		.
		.
		.
typedef	union {			/******** DECODE PARAMETERS ***********/
	BDIM    pval;		/* parameter value		      */
	struct {
#ifdef XWIND
#ifdef sun
		char	hival;
		char	loval;
#else sun
		char	loval;
		char	hival;
#endif sun
#else
		char	hival;
		char	loval;
#endif
		.
		.
		.

	Hope it helps.

		Jeff Schwab
		jrs@ee.ecn.purdue.edu
Technical Details
Message-ID: <8703090347.AA06477@ee.ecn.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!ucbvax!EE.ECN.PURDUE.EDU!jrs

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!ucbvax!EE.ECN.PURDUE.EDU!jrs
From: jrs@EE.ECN.PURDUE.EDU (Jeff Schwab)
Newsgroups: comp.windows.x
Subject: Re: Fixes to ximpv for Sun 3?
Message-ID: <8703090347.AA06477@ee.ecn.purdue.edu>
Date: Sun, 8-Mar-87 22:47:21 EST
Article-I.D.: ee.8703090347.AA06477
Posted: Sun Mar  8 22:47:21 1987
Date-Received: Mon, 9-Mar-87 19:15:11 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 50