From 5a165aacd17de845d34da7a222133d22642bc7ca Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 25 Feb 2018 15:47:27 -0800 Subject: sdl_fb: jump through SDL_Main() hoops Since I don't use the SDL event loop, this needs to be done to keep things happy apparently. --- src/sdl_fb.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include #include @@ -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; -- cgit v1.2.3