[futurebasic] Re: [FB] Carbon Differences ( updating some Derek code)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Fri, 9 May 2003 20:28:40 +1200
On Friday, May 9, 2003, at 11:12  AM, Robert Covington wrote:

> Trying to get Derek's Gamma Fade Utils working in Carbon.
>
> First, is there a new simpler way to fade the monitor to black?

Use RezLib. It's a freeware shared library by Ian Ollman that does 
monitor fades and resolution switching in OS 8/9 and in OS X.  I don't 
have an up-to-date URL, but a Google search will find it.


> Barring that,  can anyone point me to the documentation for, or 
> replacements for the below?

> myCPB&.csCode% = _cscGetGamma
> myCPB&.ioRefNum% = theGDevice&..gdRefNum%
> myCPB&.csParam& = @theTable&
> errorCold = FN STATUS(myCPB&)   <----not happy in Carbon
>
>
> myCPB&.csCode% = _cscSetGamma
> myCPB&.ioRefNum% = theGDevice&..gdRefNum%
> myCPB&.csParam& = theTablePtr&
> errorCold = FN CONTROL(myCPB&)  <----not happy in Carbon

These two calls are properly named PBStatusImmed and PBControlSync. 
Neither is available in Carbon.

Robert P.