[comp.sys.mac.programmer] 2-16-256-million color mode

jkeegan@hawk.ulowell.edu (Jeff Keegan) (07/03/90)

Is there ANY "acceptible" way to change the color mode other than telling
someone to go change it? For instance, if the system is in 256 color
mode and you're writing a 16-color game, is it against apple-standards
to bring up a dialog saying something to the effect of :

"You are currently in 256 color mode. Do you want to temporarily change to
16 color mode for the duration of this game?" with a yes/no(quit) choice?

Also if this was acceptible, can it be easily changed without saving the
change? (like switcheroo does, so that the mode changes, yet if the machine
were abruptly turned off and on, the change would not be remembered)

The foremost of the questions I'm asking though is the Apple guidelines.
It is no big deal to have people quit and change it, though if nothing
prohibits it, it'd be nice to do.

Lastly, is there a risk of other applications actually /crashing/?
I haven't encountered a system bomb because of this reason yet (Fullpaint
looks horrible but doesn't crash). Is this why it's not suggested, if it
isn't?

..Jeff Keegan

-------------------------------------------------------------------------------
| Jeff Keegan                | I clutch the wire fence until my fingers bleed |
| jkeegan@hawk.ulowell.edu   | A wound that will not heal                     |
|----------------------------| A heart that cannot feel                       |
| This space intentionally   | Hoping that the horror will receed             |
| left blank                 | Hoping that tomorrow we'll all be freed  -RUSH |
-------------------------------------------------------------------------------

beard@ux1.lbl.gov (Patrick C Beard) (07/08/90)

In article <1037@swan.ulowell.edu> jkeegan@hawk.ulowell.edu (Jeff Keegan) writes:
#Is there ANY "acceptible" way to change the color mode other than telling
#someone to go change it?

There is a new call that is documented in the latest batch of Tech Notes
called "SetDepth()".  This lets you do precisely this from software.

On the other hand, the user interface guidelines for this aren't really
spelled out.  I think that an application should notify the user that
it is about to change the depth of the monitor, and allow the user to
quit if that is not what he wants to do.

-------------------------------------------------------------------------------
-  Patrick Beard, Macintosh Programmer                        (beard@lbl.gov) -
-  Berkeley Systems, Inc.  ".......<dead air>.......Good day!" - Paul Harvey  -
-------------------------------------------------------------------------------