diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-23 01:12:09 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-23 01:12:09 +0100 |
commit | 467a6990b0ee9ba568008697ba2f31b26951dbeb (patch) | |
tree | 298c21e7c9da10c74023d0479139f2fc995fd06b /wrapsdl2.cpp | |
parent | Remove test makefile (diff) | |
download | libwsdl2-467a6990b0ee9ba568008697ba2f31b26951dbeb.tar.gz libwsdl2-467a6990b0ee9ba568008697ba2f31b26951dbeb.zip |
Separate renderer from window
Diffstat (limited to '')
-rw-r--r-- | wrapsdl2.cpp | 12 |
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"); } |