galvin@yale.UUCP (Peter Galvin) (10/02/87)
I'm having trouble getting ximpv to work. I build it on our Celerity computer without an error. I then run it on the demo impress file provided, with the DISPLAY set to my RT workstation. It creates a large window as one would expect, but it only displays a few gibberish characters in the window (some of them "e"'s, the rest just junk). The impress files I want to preview are destined for an imagen 300, in case it matters. --Pete
dudek@ubglue.ksr.com (Glen Dudek) (10/07/87)
I had to change some byte-order dependencies to get ximpv to work on our Suns - context diffs to 'imPdefs.h' and 'decode.c' follow: Glen Dudek ksr!dudek@harvard.harvard.edu *** /tmp/,RCSt1a05090 Wed Oct 7 10:53:41 1987 --- imPdefs.h Wed Oct 7 10:52:06 1987 *************** *** 57,63 **** } parva; /**************************************/ parva param[10]; #define V(i) (param[i].pval) ! #define v(i) (param[i].pval2.loval) #define P(i) (param[i].pptr) /* extend sign for an int */ ! #define EXTSIGN(n) if (v(n)<0) param[n].pval2.hival = 0377 --- 57,63 ---- } parva; /**************************************/ parva param[10]; #define V(i) (param[i].pval) ! #define v(i) (param[i].pval & 0xff) #define P(i) (param[i].pptr) /* extend sign for an int */ ! #define EXTSIGN(n) if (v(n)&0x80) param[n].pval = (char)v(n); *** /tmp/,RCSt1a05095 Wed Oct 7 10:53:54 1987 --- decode.c Wed Oct 7 10:51:47 1987 *************** *** 127,134 **** sp = cmdpmsk[CMDPMIX(ccode)]; while (*sp!=0) { if (*sp == 'B') { ! parap->pval2.hival = 0; ! parap->pval2.loval = *Cinpcurr; Cinpcurr++; } else if (*sp == 'W') { --- 127,133 ---- sp = cmdpmsk[CMDPMIX(ccode)]; while (*sp!=0) { if (*sp == 'B') { ! parap->pval = ((BDIM)*Cinpcurr) & 0xff; Cinpcurr++; } else if (*sp == 'W') {