Get the current video mode
int PgGetVideoMode( PgDisplaySettings_t *settings );
This function gets the current video mode, storing information about it in the PgDisplaySettings_t structure pointed to by settings, which includes at least the following:
- unsigned mode
- The number of the current mode for the video card.
- int refresh
- The refresh rate, in Hz. A value of 0 indicates that the default refresh rate for this mode (usually 60Hz) is being used.
- unsigned flags
- There are currently no flags defined.
|You must target this function at a specific card by calling PdSetTargetDevice(). PgGetVideoMode() blocks until the operation is complete.|
- An error occurred.
“Video modes” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide