From 467a6990b0ee9ba568008697ba2f31b26951dbeb Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 23 Jan 2019 01:12:09 +0100 Subject: Separate renderer from window --- wrapsdl2.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'wrapsdl2.cpp') 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"); } -- cgit v1.2.1