Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!agate!garnet.berkeley.edu!deadman From: deadman@garnet.berkeley.edu (Ben Haller) Newsgroups: comp.sys.mac.programmer Subject: Re: Deep questions about CLUTs, SetEntries, and protected/reserved colors Message-ID: <1991Jan28.065109.15134@agate.berkeley.edu> Date: 28 Jan 91 06:51:09 GMT References: <1991Jan28.023112.29714@agate.berkeley.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 26 In article <1991Jan28.023112.29714@agate.berkeley.edu> deadman@garnet.berkeley.edu (Ben Haller) (ME) writes: > 1. How do you find out the "standard" CLUT for a given bit depth and > color/grayscale setting? Klutz has a "Default CLUT" button, but > tracing through in MacsBug reveals that Klutz gets the default > CLUT from resources inside it, and, in fact, sets to the *wrong* > CLUT in grayscale modes, since the standard CLUT for grayscale > modes has been changed since Klutz came out. There must be some > way to get this information out of CQD - how? I should clarify: it says in IM-5, page 81: "There are several default color tables that are in the Macintosh II ROMs. There is one for each of the standard pixel depths. The resource ID for each table is the same as the depth. For example, the default color table used when you switch your system to 8 bits per pixel mode is stored with resource ID = 8." This doesn't solve my problem, because since that was written, things have changed. There is now one default color table per depth for color modes, and a *different* color table per depth for grayscale modes. I need to know how this works. Is there a more complex resource ID numbering scheme now? Did 32-Bit QuickDraw patch something in an attempt to use the correct table for whatever display was being "defaulted"? Is there some call that I'm not aware of that returns the correct table? Etc. -Ben Haller (deadman@garnet.berkeley.edu)