sdlDisableScreenSaver function

void sdlDisableScreenSaver()

Prevent the screen from being blanked by a screen saver.

If you disable the screensaver, it is automatically re-enabled when SDL quits.

The screensaver is disabled by default since SDL 2.0.2. Before SDL 2.0.2 the screensaver was enabled by default.

\since This function is available since SDL 2.0.0.

\sa SDL_EnableScreenSaver \sa SDL_IsScreenSaverEnabled

extern DECLSPEC void SDLCALL SDL_DisableScreenSaver(void)

Implementation

void sdlDisableScreenSaver() {
  final sdlDisableScreenSaverLookupFunction =
      libSdl2.lookupFunction<Void Function(), void Function()>(
          'SDL_DisableScreenSaver');
  return sdlDisableScreenSaverLookupFunction();
}