]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.cc
initial port to win32
[chaz/yoink] / src / Moof / Engine.cc
index c74ace8ef2207428f360dc5ae397d663539aca28..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);
@@ -90,7 +94,7 @@ public:
                printFps = false;
                settings.get("video.printfps", printFps);
 
-               video = VideoPtr(new Video(name, iconFile));
+               video = Video::alloc(name, iconFile);
                video->makeActive();
        }
 
@@ -222,7 +226,7 @@ public:
 
        Engine*         interface;
 
-       VideoPtr        video;
+       VideoP          video;
 
        bool            running;
        int                     exitCode;
This page took 0.021808 seconds and 4 git commands to generate.