summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 2acc71a6..38d01b94 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,6 +22,7 @@ int main(int argc, char **argv) {
22 init_Foundation(); 22 init_Foundation();
23 printf("Lagrange: A Beautiful Gemini Client\n"); 23 printf("Lagrange: A Beautiful Gemini Client\n");
24 /* Initialize SDL. */ 24 /* Initialize SDL. */
25 SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
25 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { 26 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) {
26 fprintf(stderr, "SDL init failed: %s\n", SDL_GetError()); 27 fprintf(stderr, "SDL init failed: %s\n", SDL_GetError());
27 return -1; 28 return -1;