PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

GetGammaInfoList (csCode = 20)

The GetGammaInfoList routine is optional. Clients wishing to find a graphics card's available gamma tables formerly accessed the Slot Manager data structures. PCI graphics drivers must return this information directly.

In the future, gamma tables will be part of the display's domain, not the graphics driver's domain. In the meantime, graphics drivers must still provide support for them by responding to the GetGammaInfoList and RetrieveGammaTable calls. The GetGammaInfoList routine iterates over the gamma tables supported by the driver for the attached display.

OSErr = Status(theDeviceRefNum, cscGetGammaInfoList, &theVDGammaListRec);
--> csPreviousGammaTableID
ID of the previous gamma table
<-- csGammaTableID
ID of the gamma table following csPreviousDisplayModeID
<-- csGammaTableSize
Size of the gamma table in bytes
<-- csGammaTableName
Gamma table name (C string)

The csGammaTableName parameter is a C string with a maximum of 31 characters. The driver needs to copy the name from its storage to the storage passed in by the caller. It can use CStrCopy. The caller uses csGammaTableSize to allocate storage to read the entire structure, using the RetrieveGammaTable routine.

Observe these cautions:


© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)