mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
Revert "[client] sdl: move SDL specific screensaver inhibit"
This reverts commit afb0146d33
.
Additional handling is required to implement this properly, postpone
this for Beta 4
This commit is contained in:
parent
8778827a42
commit
23e883f60f
@ -36,9 +36,6 @@ static struct SDLDSState sdl;
|
|||||||
|
|
||||||
static bool sdlEarlyInit(void)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1858,6 +1858,9 @@ static int lg_run(void)
|
|||||||
return -1;
|
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)
|
if (SDL_Init(SDL_INIT_VIDEO) < 0)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("SDL_Init Failed");
|
DEBUG_ERROR("SDL_Init Failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user