X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FEngine.cc;h=27406521da79693040a6e8b7bdc9e34dd141528e;hp=df6b35a8e92d2fece2439fe9a0499884d07f480c;hb=8ad81a8282ce6e9e488a453e6bcd05fbc09715dc;hpb=50c1239917f5e443b8ec91773c85ceb3db7da67b diff --git a/src/Moof/Engine.cc b/src/Moof/Engine.cc index df6b35a..2740652 100644 --- a/src/Moof/Engine.cc +++ b/src/Moof/Engine.cc @@ -53,7 +53,11 @@ public: Engine* outer) : interface(outer) { +#if defined(_WIN32) || defined (_WIN64) || defined(__WIN32__) + if (SDL_Init(SDL_INIT_EVERYTHING) != 0) +#else if (SDL_Init(SDL_INIT_EVERYTHING | SDL_INIT_EVENTTHREAD) != 0) +#endif { std::cerr << "sdl is complaining: " << SDL_GetError() << std::endl; throw Exception(Exception::SDL_ERROR);