Article View: comp.windows.x
Article #25086(none)
From: root%paul%uscacsc.UUCP
Date: Wed, 11 Mar 1987 15:13
Date: Wed, 11 Mar 1987 15:13
38 lines
1563 bytes
1563 bytes
xdvi, as distributed for the RT, does not run properly. The bug is
due to the usual byte-ordering problem. The following code addition
is needed in the read_pxl_bitmap() routine in dv.c . It is placed at
the end so the debug routines still display the characters properly.
The extra code does just the proper byte swapping. This will be needed
for other machines with a byte-ordering similar to the RT (Sun?).
Enjoy,
-- Marco Papa
USC Advanced Computing Support Center
507,508d506
< register char *ptr2; /* [MP] */
< register char tmp;
530d527
<
535,547d531
< /* ******** CHANGES [MP] ******* */
< ptr = bitmap->bits;
< ptr2 = ptr + 1;
< for (i = 0; i < bitmap->h; i += 1)
< for (j = 0; j < bitmap->bytes_wide; j += 2)
< {
< tmp = *ptr;
< *ptr = *ptr2;
< *ptr2 = tmp;
< ptr += 2;
< ptr2 += 2;
< }
< /* ********* END OF CHANGE [MP] **** */
...Paul Nahi
uscacsc!paul@usc-cse.usc.edu
Technical Details
Message-ID:
<8703111513.AA02458@paul.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!USC-CSE.USC.EDU!root%paul%uscacsc.UUCPShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!USC-CSE.USC.EDU!root%paul%uscacsc.UUCP From: root%paul%uscacsc.UUCP@USC-CSE.USC.EDU.UUCP Newsgroups: comp.windows.x Subject: (none) Message-ID: <8703111513.AA02458@paul.UUCP> Date: Wed, 11-Mar-87 10:13:57 EST Article-I.D.: paul.8703111513.AA02458 Posted: Wed Mar 11 10:13:57 1987 Date-Received: Fri, 13-Mar-87 02:03:58 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 38