Added an API to enable/disable the screen saver.
The screensaver is disabled by default when using SDL 1.2 compatibility. Use the new XScreenSaver extension, removed unused DPMS extension. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403487
This commit is contained in:
parent
4bb83c1f39
commit
4ca3bd3da1
16 changed files with 183 additions and 146 deletions
|
@ -1311,6 +1311,36 @@ extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_TextureID textureID);
|
|||
*/
|
||||
extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_WindowID windowID);
|
||||
|
||||
/**
|
||||
* \fn SDL_bool SDL_IsScreenSaverEnabled();
|
||||
*
|
||||
* \brief Returns whether the screensaver is currently enabled (default off).
|
||||
*
|
||||
* \sa SDL_EnableScreenSaver()
|
||||
* \sa SDL_DisableScreenSaver()
|
||||
*/
|
||||
extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled();
|
||||
|
||||
/**
|
||||
* \fn void SDL_EnableScreenSaver();
|
||||
*
|
||||
* \brief Allow the screen to be blanked by a screensaver
|
||||
*
|
||||
* \sa SDL_IsScreenSaverEnabled()
|
||||
* \sa SDL_DisableScreenSaver()
|
||||
*/
|
||||
extern DECLSPEC void SDLCALL SDL_EnableScreenSaver();
|
||||
|
||||
/**
|
||||
* \fn void SDL_DisableScreenSaver();
|
||||
*
|
||||
* \brief Prevent the screen from being blanked by a screensaver
|
||||
*
|
||||
* \sa SDL_IsScreenSaverEnabled()
|
||||
* \sa SDL_EnableScreenSaver()
|
||||
*/
|
||||
extern DECLSPEC void SDLCALL SDL_DisableScreenSaver();
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||
/* OpenGL support functions. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue