summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index b1850283..efe96ad9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -68,10 +68,13 @@ int main(int argc, char **argv) {
68 "DHE-RSA-AES256-GCM-SHA384"); 68 "DHE-RSA-AES256-GCM-SHA384");
69 SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); 69 SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1");
70 SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1"); 70 SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1");
71 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { 71 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER)) {
72 fprintf(stderr, "SDL init failed: %s\n", SDL_GetError()); 72 fprintf(stderr, "[SDL] init failed: %s\n", SDL_GetError());
73 return -1; 73 return -1;
74 } 74 }
75 if (SDL_Init(SDL_INIT_AUDIO)) {
76 fprintf(stderr, "[SDL] audio init failed: %s\n", SDL_GetError());
77 }
75 run_App(argc, argv); 78 run_App(argc, argv);
76 SDL_Quit(); 79 SDL_Quit();
77#if defined (LAGRANGE_ENABLE_MPG123) 80#if defined (LAGRANGE_ENABLE_MPG123)