Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!chrisg From: chrisg@microsoft.UUCP (Chris GUZAK) Newsgroups: comp.windows.ms.programmer Subject: Re: Managing Colors Keywords: Color, Pallet Message-ID: <59562@microsoft.UUCP> Date: 5 Dec 90 00:00:47 GMT References: <1990Nov26.130804.3496@cbnews.att.com> Reply-To: chrisg@microsoft.UUCP (Chris GUZAK) Distribution: na Organization: Microsoft Corp., Redmond WA Lines: 26 In article <1990Nov26.130804.3496@cbnews.att.com> gwe@cbnews.att.com (George W. Erhart) writes: >(First let me state that I do not have the SDK, but that is another story) > >I recently upgraded my machine to a 256 color capable video card. (Paradise >1024) I noticed as I was displaying 256 GIF files using wingif, that each >GIF I loaded changed the overall color map. This has a rather anti-social >effect on other applications that might have their own idea of what the >color map should look like. I don't now what wingif does (if it is a well behaved palette app) but windows has a "palette manager" that controls who has priority in the system palette. The active window gets first shot at filling the palette. If there are more free entries other apps get those. If there are no more free entries colors are closest-matched to what is in the palette. This scheme favors the top app (the one you are working on), but gives the best approximation to all others. >This is one area where windows appears to be quite backward ... any comments? This is the way I want it to work... I'm sure there are other designs. >-- >George Erhart >AT&T Bell Laboratories >att!archie!gwe