From 8e684dc0c76708e3174f005aebcaabc144b85500 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 5 Dec 2019 09:21:26 +0800 Subject: =?UTF-8?q?*=E8=83=8C=E9=9D=A2=E5=89=94=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index d06803a..5698396 100644 --- a/src/main.c +++ b/src/main.c @@ -30,7 +30,7 @@ SETEXAMPLEF(onupdate, i) int main(int argc, char* argv[]) { - if (SDL_Init(SDL_INIT_VIDEO) < 0) + if (SDL_Init(SDL_INIT_EVERYTHING) < 0) return 1; SDL_Window* wnd = SDL_CreateWindow("Test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN); SDL_Event e; -- cgit v1.1-26-g67d0