PollForDisplaySwitch

Polls the hardware to determine if a mode change is pending

Declaration

N_int32 NAPI GA_initFuncs::PollForDisplaySwitch(void)

Prototype In

snap/graphics.h

Return Value

True if a mode change occurred, false if not.

Description

This function polls the hardware to determine if a mode change should be processed, and if so it processes the mode change and returns to the caller. This function should be called about once every 250ms by the OS shell display driver to ensure that mode changes are handled in a timely manner. Mode changes include switching the active display device via system hot keys (ie: LCD to CRT to TV etc), as well as changing the expansion settings on laptop systems etc. Internally SNAP drivers will use this function to determione if a switch is pending or if a switch has already taken place that needs to be 'fixed up'. If a switch is pending, the OS shell driver should then call the PerformDisplaySwitch function to complete the process of performing the requested display switch.

See Also

PerformDisplaySwitch, SwitchPhysicalResolution

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com