From 46a28a711fd730828ae5596f68ef3510a20b7b31 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Mon, 21 Jan 2019 15:26:43 +0100 Subject: Make window_test threaded --- wrapsdl2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'wrapsdl2.cpp') diff --git a/wrapsdl2.cpp b/wrapsdl2.cpp index 6c7896f..f9f346b 100644 --- a/wrapsdl2.cpp +++ b/wrapsdl2.cpp @@ -15,5 +15,14 @@ bool wrapsdl2::initialize(void) { } void wrapsdl2::quit(void) { + if (SDL_WasInit(SDL_INIT_VIDEO)) + SDL_QuitSubSystem(SDL_INIT_VIDEO); + SDL_Quit(); } + + + +void wrapsdl2::delay(unsigned ms) { + SDL_Delay(ms); +} \ No newline at end of file -- cgit v1.2.1