shithub: pt2-clone

Download patch

ref: 111a06b02ac20c539326e1d4182e4c7b3b78d771
parent: d13d5a8ae53c840222223cfefa4b721e3e185e47
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Mar 3 07:55:35 EST 2021

Allow screensaver to be activated (issue #14)

--- a/src/pt2_main.c
+++ b/src/pt2_main.c
@@ -202,6 +202,7 @@
 	}
 
 	SDL_SetThreadPriority(SDL_THREAD_PRIORITY_HIGH);
+	SDL_EnableScreenSaver(); // allow screensaver to activate
 
 	/* Text input is started by default in SDL2, turn it off to remove ~2ms spikes per key press.
 	** We manuallay start it again when someone clicks on a text edit box, and stop it when done.