summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-02-25 15:47:27 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-02-26 05:20:36 -0800
commit5a165aacd17de845d34da7a222133d22642bc7ca (patch)
tree2a80c4e6ddd9186f8d393be1d909620cef23ef95 /src
parentded1f41f810c25eac77899250d2223ea251a899f (diff)
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.
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