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

This commit is contained in:
Geoffrey McRae committed 2021-01-21 14:03:05 +11:00
1 parent 3385438095
commit afb0146d33
2 files changed
+3 -3

No files matched your search

+3
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;
}
-3
View File
@@ -1851,9 +1851,6 @@ static int lg_run(void)
return -1;
}
// Allow screensavers for now: we will enable and disable as needed.
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
DEBUG_ERROR("SDL_Init Failed");