diff --git a/src/Main.cpp b/src/Main.cpp index fc2dd1fd..26df866f 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -89,6 +89,8 @@ int main(int argc, char *argv[]) int i; + SDL_Init(SDL_INIT_EVENTS); + // Get executable's path char *base_path = SDL_GetBasePath(); size_t base_path_length = strlen(base_path); @@ -191,7 +193,7 @@ int main(int argc, char *argv[]) RECT unused_rect = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT}; - SDL_Init(SDL_INIT_EVENTS); + SDL_InitSubSystem(SDL_INIT_VIDEO); SDL_Window *window;