home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gumby!kzoo!k044477
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Subject: Re: Weird Quickdraw Bug w/ Geneva
- Message-ID: <1992Aug18.202015.13117@hobbes.kzoo.edu>
- Organization: Kalamazoo College
- References: <cshotton-180892101517@oac2.hsc.uth.tmc.edu> <1992Aug18.165219.3514@hobbes.kzoo.edu> <cshotton-180892123434@oac2.hsc.uth.tmc.edu>
- Date: Tue, 18 Aug 1992 20:20:15 GMT
- Lines: 46
-
- cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
- >k044477@hobbes.kzoo.edu (Jamie R. McCarthy) wrote:
- >>
- >> cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
- >> >
- >> >When 9 pt. Geneva is used, the text comes out as a
- >> >VERY pale yellow (instead of the expected black).
- >>
- >> Sounds like you're messing with the screen's color table, and not
- >> letting the system know that you're doing it.
- >> Theoretically, there's no way you can do this :-) if you're using the
- >> Palette Manager exclusively...
- >
- >OK, that makes sense. I am certainly NOT doing it on purpose. The only
- >color environment changes I THINK I'm making involve getting the palette
- >associated with a window and using SetPalette to assign the same palette to
- >several other windows (but not the one with the problem).
-
- Hmmm. This may be bad; I've never seen a prohibition against having
- the same palette accessed by more than one window, but I've never seen
- anything allowing it either. Try copying the palette before you
- re-assign it:
-
- PaletteHandle myPlttHndl;
- myPlttHndl = GetPalette(window1);
- HandToHand( (Handle*) &myPlttHndl );
- SetPalette(window2, myPlttHndl, TRUE);
-
- >you're saying that something is happening to the entire display (gdevice),
- >and not just individual windows, correct?
-
- Yes; the distinction's kind of artificial though...
-
- >Do you have any suggestions as to how this color corruption might be
- >happening? Maybe calling SetPalette on a window that isn't open?
-
- I don't believe I've ever had any problems with assigning a palette to a
- hidden window.
-
- If the HandToHand trick fixes it, let me know--as I say, I don't know of
- any prohibitions against doing what you're doing.
- --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- "Merlin said, 'This is he.' Then the Archbishop looked upon Arthur and he
- beheld that the youth was very comely of face, wherefore his heart went out
- unto Arthur and he loved him a very great deal." (NEA grant denied.)
-