summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sdl_fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sdl_fb.c b/src/sdl_fb.c
index b663848..77c62bf 100644
--- a/src/sdl_fb.c
+++ b/src/sdl_fb.c
@@ -1,3 +1,4 @@
+#define SDL_MAIN_HANDLED
#include <SDL.h>
#include <stdlib.h>
#include <errno.h>
@@ -36,6 +37,7 @@ void * sdl_fb_init(const settings_t *settings)
if (!c)
return NULL;
+ SDL_SetMainReady();
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
free(c);
return NULL;
© All Rights Reserved