russ@scdpyr.UUCP (Russ Rew) (03/06/87)
On a Sun 3 running os 3.2, the V10R4 (after 12/24/86) version of ximpv doesn't seem to produce anything legible on either of the test files in the ximpv directory, although it compiles and loads with no errors. Has anyone gotten ximpv to work on a Sun 3 under SunOS 3.2? If so, I would be grateful if you would mail me the fixes. Thanks in advance. Russ Rew, University Corporation for Atmospheric Research UUCP: ...!hao!scdpyr!russ Internet: russ@groucho.ucar.edu CSNET: russ@ncar.csnet -- Russ Rew, University Corporation for Atmospheric Research UUCP: ...!hao!scdpyr!russ Internet: russ@groucho.ucar.edu CSNET: russ@ncar.csnet
jrs@EE.ECN.PURDUE.EDU (Jeff Schwab) (03/09/87)
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