home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!bu.edu!dartvax!Joe.Francis
- From: Joe.Francis@dartmouth.edu (Joe Francis)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
- Message-ID: <1992Sep11.005924.21955@dartvax.dartmouth.edu>
- Date: 11 Sep 92 00:59:24 GMT
- References: <14973@mindlink.bc.ca> <28629@vedge.UUCP>
- Sender: news@dartvax.dartmouth.edu (The News Manager)
- Organization: Dartmouth College, Hanover, NH
- Lines: 11
- X-Posted-From: InterNews1.0a4@newshost.dartmouth.edu
-
- 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.
-