ref: 54189c598de093fe2ac2424c3d53d175f2d7437d
parent: f0d1706907fca02580f58f60d2fb0dbb426e1b33
author: Clownacy <[email protected]>
date: Thu Jan 16 11:36:03 EST 2020
Explicitly init SDL2's video subsystem
--- a/src/Main.cpp
+++ b/src/Main.cpp
@@ -89,6 +89,8 @@
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 @@
RECT unused_rect = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
- SDL_Init(SDL_INIT_EVENTS);
+ SDL_InitSubSystem(SDL_INIT_VIDEO);
SDL_Window *window;