home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!bcm!lib!oac2
- From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Weird Quickdraw Bug w/ Geneva
- Message-ID: <cshotton-180892123434@oac2.hsc.uth.tmc.edu>
- Date: 18 Aug 1992 17:41:18 GMT
- References: <cshotton-180892101517@oac2.hsc.uth.tmc.edu> <1992Aug18.165219.3514@hobbes.kzoo.edu>
- Sender: usenet@lib.tmc.edu
- Followup-To: comp.sys.mac.programmer
- Organization: Academic Computing
- Lines: 41
- Nntp-Posting-Host: oac2.hsc.uth.tmc.edu
-
- In article <1992Aug18.165219.3514@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu
- (Jamie R. McCarthy) wrote:
- >
- > cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
- > >I've run into a VERY odd "feature" with a relatively simple piece of code.
- > >
- > >When 9 pt. Geneva is used, the text comes out as a
- > >VERY pale yellow (instead of the expected black). If any font besides
- > >Geneva is used, or any any size of Geneva BESIDES 9 pt, there is no
- > >problem.
- > >
-
- > 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, and if you're not directly editing the data
- > in the system's data structures. If you grab a GDevice's color table
- > and shove your own data into it without calling CTabChanged() or
- > changing its ctSeed, you'll experience effects exactly like those you
- > explain.
- >
-
- 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). ActivatePalette
- is being called whenever a particular window with a custom palette becomes
- active. Anything other than that is purely accidental. If I read you right,
- you're saying that something is happening to the entire display (gdevice),
- and not just individual windows, correct?
-
- Do you have any suggestions as to how this color corruption might be
- happening? Maybe calling SetPalette on a window that isn't open?
-
- --_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
- Chuck Shotton |
- Ass't Director, Academic Computing | "This space for rent."
- UT Health Science Center Houston |
- cshotton@oac.hsc.uth.tmc.edu |
- _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
-