Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!cbmvax!vu-vlsi!elh From: elh@vu-vlsi.UUCP (Edward L. Hepler) Newsgroups: comp.sys.att Subject: Re: wrastop on 7300 ? Message-ID: <1069@vu-vlsi.UUCP> Date: Tue, 18-Aug-87 08:45:11 EDT Article-I.D.: vu-vlsi.1069 Posted: Tue Aug 18 08:45:11 1987 Date-Received: Thu, 20-Aug-87 04:44:02 EDT References: <1067@vu-vlsi.UUCP> Organization: Villanova Univ. EE Dept. Lines: 18 Summary: Found it! In article <1067@vu-vlsi.UUCP>, elh@vu-vlsi.UUCP (Edward L. Hepler) writes: > I have been trying to use the wrastop(3T) function on my 3b1 with no > success. I get a -1 returned with a perror() of "Bad Address". > wrastop(pw, > ptr->where.address.pixrectptr,(short)((ptr->width+15)>>4), ^^^^^^^^^^^^^^^^^^^^^^^^^^^ I found that I misread the manual page on wrastop (Stupid me!). I assumed that since the address was a short that the width was the number of shorts. NO. The width is the number of bytes. (It also seems that the number of bytes must match the number of shorts*2). (Even if the actual width is only 7 pixels (for example)). Thanks, Ed Hepler elh@vu-vlsi