HasDepth
HasDepth Check to see whether device supports given pixel depth
#include <Palettes.h> Graphics Devices
short HasDepth( gdh, depth, whichFlags, flags );
GDHandle gdh ; Device whose pixel depth is being checked
short depth ; Depth being checked
short whichFlags ; Used to specify which of the gdFlags to check
short flags ; Used to specify the mode you inquire after
returns boolean, 0 if buffer has moved (error state)
HasDepth checks to see whether the device you specify supports a given
pixel depth. In the whichFlags parameter you specify which of the gdFlags set
to check; in the flags parameter you specify the value to check for. The
function returns 0 if the device does not support the mode you inquire after; if
the device does support the mode, the function returns the mode ID. For more
information, see the Slot Manager and Designing Cards and Drivers for the
Macintosh Family.
You should always test a device for a particular depth before setting the
device's depth.