Path: utzoo!attcan!uunet!jarthur!elroy.jpl.nasa.gov!sdd.hp.com!samsung!olivea!apple!marc From: marc@Apple.COM (Mark Dawson) Newsgroups: comp.sys.mac.programmer Subject: Re: Switching Monitor Depth Keywords: monitor, depth, color Message-ID: <45413@apple.Apple.COM> Date: 6 Oct 90 17:44:07 GMT References: <1990Oct5.052135.1635@ux1.cso.uiuc.edu> <1990Oct5.154600.13120@midway.uchicago.edu> <1990Oct5.235909.6502@ux1.cso.uiuc.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 43 In article <1990Oct5.235909.6502@ux1.cso.uiuc.edu> jason@ux1.cso.uiuc.edu (Jason Watts) writes: >francis@arthur.uchicago.edu (Francis Stracke) writes: > >>In article <1990Oct5.052135.1635@ux1.cso.uiuc.edu> jason@ux1.cso.uiuc.edu (Jason Watts) writes: >>> I am writing a program which needs to change the depth of the main >>>monitor. This does not seem to be documented in IM V, "Graphics Devices." >>>Does anyone know the procedure for doing this? > >>You use the Control Panel. >>No, seriously. IM V says leave monitor depth alone. That's the user's >>province. Never mind the Thought Police; you could get your users mad. >>If it's not what you want it to be, ask the user to change it--if he >>can't or won't, then give him your best shot in the depth he lets you >>have. > >>| Francis Stracke | My opinions are my own. I don't steal them.| >>| Department of Mathematics |=============================================| >>| University of Chicago | A mathematician is a professional | >>| francis@zaphod.uchicago.edu | schizophrenic.--Me. | > >Allow me to clarify: > > I am writing a cdev which needs to let the user change the depth of the >main monitor. This does not seem to be documented in IM V, >"Graphics Devices." Does anyone know the procedure for doing this? > Tech Note #276 (June 1990 release) gives information on doing just this, including how to do this without being arrested by the "Thought Police". There are two calls, SetDepth and GetDepth that do this (you must be running on a system 6.0.5 or later to be able to use these traps, though). So for the "exciting" details, see Tech Note #276 (of the June 1990 release). Mark ps: And, no I don't know where the June release is available for ftping. -- --------------------------------- Mark Dawson Service Diagnostic Engineering AppleLink: Dawson.M Apple says what it says; I say what I say. We're different ---------------------------------