[client] sdl: move SDL specific screensaver inhibit out of main.c

This commit is contained in:
Geoffrey McRae
2021-01-21 14:02:34 +11:00
parent 3385438095
commit afb0146d33
2 changed files with 3 additions and 3 deletions

View File

@@ -36,6 +36,9 @@ static struct SDLDSState sdl;
static bool sdlEarlyInit(void)
{
// Allow screensavers for now: we will enable and disable as needed.
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
return true;
}