>At 8:42 PM -0800 1999/03/31, Stephen Best wrote:
>>The above goes after ScrDisplayMode (scrDisplayModeSetToDefaults, ...)?
At 10:08 PM -0800 3/31/99, Jim Schram wrote:
>Well, I think Bob was just demonstrating the concept --> get the value,
>change the contrast, set the value. Like this:
Actually, either way will work. Personally, I'd do it this way:
ScrDisplayMode (scrDisplayModeSetToDefaults, ...);
SysLCDContrast(true, SysLCDContrast(false, 0));
...if only because it's one less local variable to declare.
And, actually, the above way is more likely to be correct if we do ever
have to implement two different contrasts for the different depths, or
attempt to automatically correct the contrast setting when you change
depths.
That is, Jim's suggestion of getting it before you switch then setting it
to that value after you switch may not always be benign.
The above code that looks like a no-op does so because eventually it will
be a no-op! It's fixing the problem now where ScrDisplayMode changes the
hardware contrast level without telling the rest of the OS. :)
--Bob