rectwrite on 70G series machines...

Chris Schoeneman jindak at surfside.sgi.com
Wed Aug 1 02:15:24 AEST 1990


In article <11144 at odin.corp.sgi.com> kurt at cashew.asd.sgi.com (Kurt Akeley) writes:
>In article <9007291150.AA09984 at mcirps2.med.nyu.edu>,
>root at MCIRPS2.MED.NYU.EDU writes:
>|> I can not seem to get a patch of pixels to write from
>|> 
>|> rectwrite(0,XSIZE,0,YSIZE,Image);
>|> 
>
>my direct response to dan bounced, so i'll respond on the net.

My mail bounced, too.

     You might have made a typo, so I just wanted to be sure that you
knew the correct order for the parameters.

  long    rectread(Screencoord x1, Screencoord y1,
                   Screencoord x2, Screencoord y2, Colorindex parray[]);
  long    lrectread(Screencoord x1, Screencoord y1,
                    Screencoord x2, Screencoord y2, unsigned long parray[]);

  void    rectwrite(Screencoord x1, Screencoord y1,
                    Screencoord x2, Screencoord y2, Colorindex parray[]);
  void    lrectwrite(Screencoord x1, Screencoord y1,
                     Screencoord x2, Screencoord y2, unsigned long parray[]);

You've got (x1,x2,y1,y2) not (x1,y1,x2,y2).  While this is different from,
say, ortho2(), viewport(), and scrmask(),  it is the same as rect().

-Chris Schoeneman

	       Chris Schoeneman | I was neat, clean, shaved and sober,
    jindak at surfside.esd.sgi.com | and I didn't care who knew it.
	 Silicon Graphics, Inc. |		-Raymond Chandler
	      Mountain View, CA |		 (The Big Sleep)



More information about the Comp.sys.sgi mailing list