]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameDraw.cpp
Don't disable all warnings...
[lugaru.git] / Source / GameDraw.cpp
index 5ea481a29d4cb09722da3bf52826873569769162..f2c59ae71e7361e9061b92afb85c10cd9c84558e 100644 (file)
@@ -188,7 +188,7 @@ long long Game::MD5_string (char *string){
                i++;
        }
 
-       num=abs(num);
+       num=longlongabs(num);
        if(num==0)num+=1452;
 
        while(num<LONGLONGCONST(5000000000000000)){
@@ -3958,8 +3958,12 @@ int Game::DrawGLScene(GLvoid)
        if(drawmode!=motionblurmode||mainmenu){
 #ifdef WIN32
                if(drawmode!=motionblurmode) SwapBuffers( hDC);
-#else
+#elif PLATFORM_MACOSX
                if(drawmode!=motionblurmode)aglSwapBuffers(gaglContext); // send swap command
+#elif USE_SDL
+        if(drawmode!=motionblurmode)SDL_GL_SwapBuffers();
+#else
+        #error define your platform.
 #endif // send swap command
        }