> So the question is this. Is there something I can do about this annoying
> contrast issue? Is there an API to set it? I know I can bring up the
> slider on the V, but I don't think there's an API to set it in OS 3.x in
> general, correct?
This is the code I use (you'll need the OS 3.1 headers):
Stephen Best
Bitware Australia
-------------------------------------------------------------------
// Get features by OS version
FtrGet (sysFtrCreator, sysFtrNumROMVersion, &romVersion);
supportGrayscale = ( romVersion >= 0x03000000 ? true : false );
supportContrast = ( romVersion >= 0x03100000 ? true : false );
// Turn grayscale on
if ( supportGrayscale )
{
if ( supportContrast )
contrastSave = SysLCDContrast (false, 0);
setGrayscale = false;
ScrDisplayMode (scrDisplayModeGet, NULL, NULL, &depth, NULL);
if ( depth < 2 )
{
depth = 2;
if ( !ScrDisplayMode (scrDisplayModeSet, NULL, NULL, &depth, NULL) )
setGrayscale = true;
}
if ( supportContrast )
SysLCDContrast (true, contrastSave);
}
// Turn grayscale off
if ( supportGrayscale )
{
if ( setGrayscale )
ScrDisplayMode (scrDisplayModeSetToDefaults, NULL, NULL, NULL, NULL);
if ( supportContrast )
SysLCDContrast (true, contrastSave);
}