|
Size: 570
Comment: Unsure if hint override is equivalent: SDL_SetHintWithPriority(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "0", SDL_HINT_OVERRIDE);
|
Size: 632
Comment: Added Version section.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 22: | Line 22: |
| == Version == This function is available since SDL 2.0.0. |
SDL_DisableScreenSaver
Use this function to prevent the screen from being blanked by a screen saver.
Syntax
void SDL_DisableScreenSaver(void)
Code Examples
SDL_DisableScreenSaver();
Remarks
If you disable the screensaver, it is automatically re-enabled when SDL quits.
Version
This function is available since SDL 2.0.0.
