Disable the screensaver by default.
Fixes Bugzilla #2218. --HG-- extra : rebase_source : 839adf21025b06637f25ff2d2756c05a00d0d87a extra : histedit_source : da99e2c6f35926cfc13b83e5557ffec57e2b1b78
This commit is contained in:
parent
2e034c2a74
commit
c5162134d2
1 changed files with 8 additions and 0 deletions
|
@ -504,6 +504,14 @@ SDL_VideoInit(const char *driver_name)
|
|||
_this->DestroyWindowFramebuffer = SDL_DestroyWindowTexture;
|
||||
}
|
||||
|
||||
/* Disable the screen saver by default. This is a change from <= 2.0.1,
|
||||
but most things using SDL are games or media players; you wouldn't
|
||||
want a screensaver to trigger if you're playing exclusively with a
|
||||
joystick, or passively watching a movie. Things that use SDL but
|
||||
function more like a normal desktop app should explicitly reenable the
|
||||
screensaver. */
|
||||
SDL_DisableScreenSaver();
|
||||
|
||||
/* If we don't use a screen keyboard, turn on text input by default,
|
||||
otherwise programs that expect to get text events without enabling
|
||||
UNICODE input won't get any events.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue