home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!concert!borg!strauss!lari
- From: lari@strauss.cs.unc.edu (Humayun Lari)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
- Message-ID: <15254@borg.cs.unc.edu>
- Date: 12 Sep 92 20:31:09 GMT
- References: <14973@mindlink.bc.ca> <28629@vedge.UUCP> <1992Sep11.005924.21955@dartvax.dartmouth.edu>
- Sender: news@cs.unc.edu
- Organization: The University of North Carolina at Chapel Hill
- Lines: 21
-
- In article <1992Sep11.005924.21955@dartvax.dartmouth.edu> Joe.Francis@dartmouth.edu (Joe Francis) writes:
- >In article <28629@vedge.UUCP>
- >brad@vedge.UUCP (Brad Fowlow) writes:
- >> Any thoughts on a PM-friendly way to get back the "normal"
- >> system palette when my last paletted window dies,
- >> just as happens when the app quits?
- >I'm hopeful that someone else will post a more elegant way, but one way
- >to do what you want is to detect when you are closing your only window,
- >EraseRect it's portRect, and set it's Palette to the system palette,
- >*then* close the window.
-
- How about this: close the window and then create a new window offscreen (i.e.
- with coordinates like 32000, 32000, 32010, 32010) Set its palette to the system
- palette, and the Palette Manager should do its job... or is it smart enough to
- check whether the window is onscreen? I'd test this, but I'm at school.
-
- BTW, shouldn't the palette be a pure black-and-white palette, so as to be nice
- to the applications in the background? Or will this not work?
-
- Humayun Lari
- (lari@cs.unc.edu)
-