Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!ogicse!orstcs!mist.CS.ORST.EDU!boerned From: boerned@mist.CS.ORST.EDU (Dan Boerner) Newsgroups: comp.sys.mac.programmer Subject: Re: A couple of color questions... Message-ID: <1991May01.014734.25231@lynx.CS.ORST.EDU> Date: 1 May 91 01:47:34 GMT References: <1991Apr29.234748.27798@lynx.CS.ORST.EDU> Sender: boerned@cs.orst.edu Organization: Computer Science Department, Oregon State Univ. Lines: 31 Nntp-Posting-Host: mist.cs.orst.edu I thought I'd post an update to my two color questions, here's what I've learned so far. First a clarification, in my last post I mentioned a problem with the screen depth changing as a result of the monitors cdev. Hogwash, (as Arnaud Gourdol pointed out to me) there was no problem with that, I just misremembered the bug. The actual problem was with dragging a window created at 8bits depth to a monitor of another depth. The depth does not change and so my routine picks the wrong icon and lets Copybits to the depth scaling. The solution (see below) is not to try to pick "one" best icon but to make the decision at draw time. Question #1, Highlighting color icons Turned out this one was easy, just use Copybits with the blend mode and set OpColor to rgb gray. Works great in color, but not in b&w so I'll have to special case that. I'd actually tried this before but forgot to set the OpColor. Question #2, choosing the best icon to draw Greg Anderson from Apple was nice enough to drop me a note and suggested I walk the GDevice list and draw the appropriate icon for each monitor that the icon intersects. So, I've decided to give up trying to statically determine the best icon to display and instead let my draw code pick the best based upon the GDevice list. Anyone out there that thinks this might not be safe? Thanks for everyone's help, --- Dan, alias "Joe Icon"