]> git.localhorst.tv Git - blank.git/blobdiff - src/app/init.cpp
fix default outline color
[blank.git] / src / app / init.cpp
index 81c2e9291cec57c61d039e223922c73d52adf8fd..a0ea7b51ba5d614a3df13814c4eee90468d6fe1d 100644 (file)
@@ -77,8 +77,8 @@ SDLError::SDLError(const std::string &msg)
 
 
 InitSDL::InitSDL() {
-       if (SDL_Init(0) != 0) {
-               throw SDLError("SDL_Init(0)");
+       if (SDL_Init(SDL_INIT_EVENTS) != 0) {
+               throw SDLError("SDL_Init(SDL_INIT_EVENTS)");
        }
 }
 
@@ -91,6 +91,8 @@ InitVideo::InitVideo() {
        if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) {
                throw SDLError("SDL_InitSubSystem(SDL_INIT_VIDEO)");
        }
+       // SDL seems to start out in text input state
+       SDL_StopTextInput();
 }
 
 InitVideo::~InitVideo() {