summaryrefslogtreecommitdiffstats
path: root/wrapsdl2.cpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-23 01:12:09 +0100
committerNao Pross <naopross@thearcway.org>2019-01-23 01:12:09 +0100
commit467a6990b0ee9ba568008697ba2f31b26951dbeb (patch)
tree298c21e7c9da10c74023d0479139f2fc995fd06b /wrapsdl2.cpp
parentRemove test makefile (diff)
downloadlibwsdl2-467a6990b0ee9ba568008697ba2f31b26951dbeb.tar.gz
libwsdl2-467a6990b0ee9ba568008697ba2f31b26951dbeb.zip
Separate renderer from window
Diffstat (limited to 'wrapsdl2.cpp')
-rw-r--r--wrapsdl2.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/wrapsdl2.cpp b/wrapsdl2.cpp
index a0fa624..393bff6 100644
--- a/wrapsdl2.cpp
+++ b/wrapsdl2.cpp
@@ -11,20 +11,16 @@ extern "C" {
bool wsdl2::initialize(void) {
if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) {
-#ifdef WRAPSDL2_EXCEPTIONS
- throw std::runtime_error("failed to initialize sdl video subsystem");
-#endif
+ throw std::runtime_error("failed to initialize SDL video subsystem");
return false;
}
if (SDL_InitSubSystem(SDL_INIT_EVENTS) < 0) {
-#ifdef WRAPSDL2_EXCEPTIONS
- throw std::runtime_error("failed to initialzie sdl events subsystem");
-#endif
+ throw std::runtime_error("failed to initialzie SDL events subsystem");
return false;
}
- npdebug("initialized sdl2");
+ npdebug("initialized SDL2");
return true;
}
@@ -38,7 +34,7 @@ void wsdl2::quit(void) {
SDL_Quit();
- npdebug("deinitialized (quit) sdl2");
+ npdebug("deinitialized (quit) SDL2");
}