]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.cc
initial port to win32
[chaz/yoink] / src / Moof / Engine.cc
index df6b35a8e92d2fece2439fe9a0499884d07f480c..27406521da79693040a6e8b7bdc9e34dd141528e 100644 (file)
@@ -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);
This page took 0.016274 seconds and 4 git commands to generate.