home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15315 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  2.9 KB

  1. Path: sparky!uunet!gatech!concert!rock!stanford.edu!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!sobeco!philmtl!vedge!brad
  2. From: brad@vedge.UUCP (Brad Fowlow)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
  5. Message-ID: <28629@vedge.UUCP>
  6. Date: 10 Sep 92 17:26:37 GMT
  7. References: <14973@mindlink.bc.ca>
  8. Organization: Visual Edge Software, St. Laurent, Quebec
  9. Lines: 63
  10.  
  11. John_Miller@mindlink.bc.ca (John Miller) writes:
  12. : In article <18lbbfINNsdp@agate.berkeley.edu>,
  13. : Ben Haller (deadman@garnet.berkeley.edu) writes
  14. : >  BTW, anybody noticed the charming System 7 bug that when the
  15. : > Color Picker comes up, after you dismiss it it leaves the CLUT
  16. : > fucked up?  Charming.  They haven't fixed that one yet, have they?
  17. : ....
  18. : Rather annoying behaviour for a call that is documented to put
  19. : everything back the way it was.  Fortunately, writing an
  20. : crude alternate color dialog for CLUT devices was quick
  21. : enough, but it was an frustrating last minute discovery.
  22.  
  23. An observation:
  24.  
  25. It restores things, but in the palette manager's terms;
  26. after the dialog goes away, the palette manager is free to 
  27. satisfy the color requirements of the next FrontWindow.
  28.  
  29. One thing folks (or else I) seem to have missed
  30. is what is promised for a window without a palette.
  31. The color environment for a color window without a palette
  32. isn't the "normal" system palette, it's black and white,
  33. and a gray and the highlight color if possible;
  34. other colors get matched at the convenience of the PM.
  35.  
  36. So the dismiss behaviour of the color picker 
  37. is (sort of) a good thing; the palette manager
  38. is reducing the amount of window refresh by changing
  39. the color env only so far as it must to meet the stated
  40. requirements of the front window.
  41.  
  42.  
  43. A question:
  44.  
  45. I don't see how to change this behavior without going under the PM.
  46. That is, I can't see how to kick the palette manager into using
  47. a palette without using a window that the palette is attached to.
  48.  
  49. For example,
  50. I have (in an app) zero or more open windows each with its
  51. own palette.  Switching among these windows is a rock video,
  52. but they do get updated quite well. After closing the
  53. last window, its color env stays around, because there's no
  54. other window demanding its own colors.   Quitting the application
  55. seems to kick the PM into restoring the "normal" color env
  56. (perhaps the Finder is doing this?).   I'd like this
  57. to happen whenever a last window closes.
  58.  
  59. But I don't see how to get the PM to change the color environment
  60. without having a window active and setting its Palette.
  61. As long as the app is running, the pm won't retire that
  62. last window's colors until forced by another paletted window,
  63. and as we've noticed, there aren't many of those.
  64.  
  65. Any thoughts on a PM-friendly way to get back the "normal"
  66. system palette when my last paletted window dies,
  67. just as happens when the app quits?
  68.  
  69. - brad
  70.  
  71. -- 
  72. -------------------------------------------------------------
  73.  Brad Fowlow   brad@vedge.com     Visual Edge Software Limited  
  74.