From b0e42f2a22b200f9a7c40e1d4a6eed1da20897d1 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 23 Jan 2022 10:50:08 -0500 Subject: Allow screensaver/sleep --- sol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sol.c') diff --git a/sol.c b/sol.c index 48a61a2..890ad89 100644 --- a/sol.c +++ b/sol.c @@ -327,6 +327,8 @@ int main(int argc, char *argv[]) { if (SDL_Init(SDL_INIT_VIDEO) < 0) err("SDL_Init"); atexit(SDL_Quit); + SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); + struct Paths paths; if (assetPaths(&paths) < 0) err("SDL_GetPrefPath"); -- cgit 1.4.1