Subject: Re: Sun CG6, X11 and so on
To: None <port-sparc64@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-sparc64
Date: 04/30/2005 16:02:57
> Gah, I this thing is weirder than I thought.  colour expansion in
> XFree works now :)  But, what cost me half the day to figure out is
> this: to draw a horizontal line of monochrome data you would...
> - set a raster op
> - set fore- and background colour
> - tell it where to start and how long a line is
> - start to feed it uint32_t's which get drawn one after the other.

Well, for zero-width lines you'd likely be better off using the
linedraw (or filled-rectangle, if horizontal or vertical) support.

> That's what all others do.  The GX fills the entire line with the
> first longword you write, apparently it thinks it's some sort of
> pattern.

Ah, I didn't know that.  I don't think I've tried with x1 set greater
than x0+32.  I'll have to remember the trick.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B