[comp.sys.mac] Desktop icon mask

luke@tasis.utas.oz (Luke Visser) (09/08/88)

The way that the finder handles the icon mask in the latest system software
has changed.  Previously it did an XOR with the mask to show the selected
icon.  However this is not so anymore.  Does anyone know what the actual
alogorithm is now.

Tech Note 55 talks about how icons are drawn, however that is the old way
(XOR) and I couldn't find any latter tech notes.

Luke Visser
---------------------------------------------------------------------------
Snail: Uni of Tasmania, Box 252C GPO, Hobart 7001, Tasmania, Australia.
ACSnet: luke@tasis.utas.oz	ARPA: luke%tasis.utas.oz@uunet.uu.net
UUCP: {enea,hplabs,mcvax,uunet,ukc}!munnari!tasis.utas.oz!luke

bob@eecs.nwu.edu (Bob Hablutzel) (09/12/88)

> The way that the finder handles the icon mask in the latest system software
> has changed.  Previously it did an XOR with the mask to show the selected
> icon.  However this is not so anymore.  Does anyone know what the actual
> alogorithm is now.

This has changed as part of the color support for new machines. In a color
environment, XORing with the hardcoded mask leads to results that Apple's
engineers didn't like. The current algorithm involves figuring out an all
solid black mask from the first ICON in the ICN# resource, and XORing with
that.

This was foreshadowed in TN 147, but I couldn't find any reference which
explained this.

Bob Hablutzel		BOB@NUACC.ACNS.NWU.EDU
Disclaimer:	<Deleted on request of my lawyers>