diff test/testsprite2.c @ 4884:27ab20a36eba

- added directx include path to VS2008 solution - updated shape vcproj and add it to VS2008 solution - minor changes (i.e. typecasting) to get rid of compiler warnings in VS
author Andreas Schiffler <aschiffler@ferzkopp.net>
date Wed, 15 Sep 2010 22:15:47 -0700
parents cd2523c69d3e
children aa8888658021
line wrap: on
line diff
--- a/test/testsprite2.c	Tue Sep 14 21:57:29 2010 -0700
+++ b/test/testsprite2.c	Wed Sep 15 22:15:47 2010 -0700
@@ -315,7 +315,7 @@
         fprintf(stderr, "Out of memory!\n");
         quit(2);
     }
-    srand(time(NULL));
+    srand((unsigned int)time(NULL));
     if (scaleMode != SDL_TEXTURESCALEMODE_NONE) {
         sprite_w += sprite_w / 2;
         sprite_h += sprite_h / 2;
@@ -368,6 +368,7 @@
         printf("%2.2f frames per second\n", fps);
     }
     quit(0);
+	return 0;
 }
 
 /* vi: set ts=4 sw=4 expandtab: */