Subject: Re: Sun CG6, X11 and so on
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Michael <macallan18@earthlink.net>
List: port-sparc64
Date: 04/30/2005 16:22:00
--Signature_Sat__30_Apr_2005_16_22_00_-0400_Ctfoib_x+SlP.krq
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> > 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.
>=20
> Well, for zero-width lines you'd likely be better off using the
> linedraw (or filled-rectangle, if horizontal or vertical) support.

Umm, I meant line =3D=3D scanline. XFree seems to like to pre-render text i=
n monochrome and then expand whole rectangles in one go. I had to use indir=
ect expansion ( via an intermediate one-scanline-buffer ) because the GX wo=
uldn't start a new scanline when finishing one and in direct mode XFree wou=
ld always transfer the whole image, not single scanlines.

btw. do you have any idea if the GX supports some sort of colour-keying? Li=
ke defining a transparent colour for screen-to-screen blits?

> > 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.
>=20
> 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.

Yeah, it's useful for stipples with more than 8 lines.

have fun
Michael

--Signature_Sat__30_Apr_2005_16_22_00_-0400_Ctfoib_x+SlP.krq
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQnPo6cpnzkX8Yg2nAQIKiAf/TnAmv7o+sEJIOqmsS02JhXEo7St7DGIa
z72AusIfM7CiR7yEmuI0vl8Y5U96mIUgMKm79Sf7cMoOX/TYOZf+Uqg5hRqmQWPn
wlDaBPU7hiNF5YS0OfEyypQFSMzMuheuSBHZYmFAKcyVwdwuyB8zQLB5IQg23Ml7
RM3/xbTt9SbNQDUsL2zXs3+KrfzNJ1OdUAmqlHAqyHLVjQ1T/KxWZowFyNct8mlq
hptYrEfIXnmXsEDezCRQNN0kBZkdqjbl6UYMT6mEsq2JP9QI3jUo4PVR2VOKZUtT
SzYfzy2VeBXIzxlnSliU8cUy9TvZgnPZplsl3cSNSYobzwAIMzXIPg==
=VCcC
-----END PGP SIGNATURE-----

--Signature_Sat__30_Apr_2005_16_22_00_-0400_Ctfoib_x+SlP.krq--