home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14158 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  2.4 KB

  1. Path: sparky!uunet!wupost!bcm!lib!oac2
  2. From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Weird Quickdraw Bug w/ Geneva
  5. Message-ID: <cshotton-180892123434@oac2.hsc.uth.tmc.edu>
  6. Date: 18 Aug 1992 17:41:18 GMT
  7. References: <cshotton-180892101517@oac2.hsc.uth.tmc.edu> <1992Aug18.165219.3514@hobbes.kzoo.edu>
  8. Sender: usenet@lib.tmc.edu
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Academic Computing
  11. Lines: 41
  12. Nntp-Posting-Host: oac2.hsc.uth.tmc.edu
  13.  
  14. In article <1992Aug18.165219.3514@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu
  15. (Jamie R. McCarthy) wrote:
  16. > cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
  17. > >I've run into a VERY odd "feature" with a relatively simple piece of code.
  18. > >
  19. > >When 9 pt. Geneva is used, the text comes out as a
  20. > >VERY pale yellow (instead of the expected black). If any font besides
  21. > >Geneva is used, or any any size of Geneva BESIDES 9 pt, there is no
  22. > >problem.
  23. > >
  24.  
  25. > Sounds like you're messing with the screen's color table, and not
  26. > letting the system know that you're doing it.
  27. > Theoretically, there's no way you can do this :-) if you're using the
  28. > Palette Manager exclusively, and if you're not directly editing the data
  29. > in the system's data structures.  If you grab a GDevice's color table
  30. > and shove your own data into it without calling CTabChanged() or
  31. > changing its ctSeed, you'll experience effects exactly like those you
  32. > explain.
  33.  
  34. OK, that makes sense. I am certainly NOT doing it on purpose. The only
  35. color environment changes I THINK I'm making involve getting the palette
  36. associated with a window and using SetPalette to assign the same palette to
  37. several other windows (but not the one with the problem). ActivatePalette
  38. is being called whenever a particular window with a custom palette becomes
  39. active. Anything other than that is purely accidental. If I read you right,
  40. you're saying that something is happening to the entire display (gdevice),
  41. and not just individual windows, correct?
  42.  
  43. Do you have any suggestions as to how this color corruption might be
  44. happening? Maybe calling SetPalette on a window that isn't open?
  45.  
  46. --_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
  47. Chuck Shotton                      |    
  48. Ass't Director, Academic Computing |       "This space for rent."
  49. UT Health Science Center Houston   |  
  50. cshotton@oac.hsc.uth.tmc.edu       |         
  51. _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
  52.