summaryrefslogtreecommitdiffstats
path: root/wrapsdl2.cpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-21 15:26:43 +0100
committerNao Pross <naopross@thearcway.org>2019-01-21 15:27:10 +0100
commit46a28a711fd730828ae5596f68ef3510a20b7b31 (patch)
tree95e1d89c6213fbb140e9b9c767eccdabab2eb369 /wrapsdl2.cpp
parentAdd window test (diff)
downloadlibwsdl2-46a28a711fd730828ae5596f68ef3510a20b7b31.tar.gz
libwsdl2-46a28a711fd730828ae5596f68ef3510a20b7b31.zip
Make window_test threaded
Diffstat (limited to '')
-rw-r--r--wrapsdl2.cpp9
1 files changed, 9 insertions, 0 deletions
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