Difference between revisions of "FULLSCREEN (function)"
|Line 1:||Line 1:|
The '''_FULLSCREEN''' function returns the present mode
The '''_FULLSCREEN''' function returns the present mode of the screen window.
Revision as of 19:55, 2 January 2010
The _FULLSCREEN function returns the present mode setting of the screen window.
Syntax: full = _FULLSCREEN
- 0 = _OFF (any non-0 value means fullscreen is on)
- 1 = _STRETCH
- 2 = _SQUAREPIXELS
Note: It cannot be assumed that calling _FULLSCREEN will succeed. It cannot be assumed that the type of full screen will match the requested one. So, always check the _FULLSCREEN function.
Warning: Despite your software, the user's hardware, drivers and monitor may not function in some modes. Thus, it is highly recommended that you manually confirm with the user whether the switch to full screen was successful. This can be done "quietly" in some cases by getting the user to click on a button on screen with their mouse or press an unusual key. If the user does not respond after about 8 seconds, switch them back to windowed mode.
See also: _FULLSCREEN (statement)