]> git.localhorst.tv Git - blank.git/blobdiff - src/app/init.cpp
handle events in headless environment
[blank.git] / src / app / init.cpp
index 81c2e9291cec57c61d039e223922c73d52adf8fd..f4bcd01f45a230c4a1d928f967f60c0ff494ba19 100644 (file)
@@ -77,8 +77,8 @@ SDLError::SDLError(const std::string &msg)
 
 
 InitSDL::InitSDL() {
-       if (SDL_Init(0) != 0) {
-               throw SDLError("SDL_Init(0)");
+       if (SDL_Init(SDL_INIT_EVENTS) != 0) {
+               throw SDLError("SDL_Init(SDL_INIT_EVENTS)");
        }
 }