summary refs log tree commit diff
path: root/freecell.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-23 10:50:08 -0500
committerJune McEnroe <june@causal.agency>2022-01-23 10:50:51 -0500
commitb0e42f2a22b200f9a7c40e1d4a6eed1da20897d1 (patch)
treea487d9d5b3100ed8fe82e5b6906787622e596a59 /freecell.c
parentOnly open the ICO file once we have something to output (diff)
downloadwep-b0e42f2a22b200f9a7c40e1d4a6eed1da20897d1.tar.gz
wep-b0e42f2a22b200f9a7c40e1d4a6eed1da20897d1.zip
Allow screensaver/sleep
Diffstat (limited to '')
-rw-r--r--freecell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/freecell.c b/freecell.c
index dd1cc3d..28b277e 100644
--- a/freecell.c
+++ b/freecell.c
@@ -529,6 +529,7 @@ 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");
 	SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1");
 
 	struct Paths paths;
e3541a9518&follow=1'>Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe