Mercurial > sdl-ios-xcode
diff test/testsprite2.c @ 2783:e33ad7ebb7eb
Fixed Direct3D rendering
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 25 Nov 2008 00:29:44 +0000 |
parents | 926294b2bb4e |
children | 6bacfecbf27e |
line wrap: on
line diff
--- a/test/testsprite2.c Mon Nov 24 23:55:18 2008 +0000 +++ b/test/testsprite2.c Tue Nov 25 00:29:44 2008 +0000 @@ -83,7 +83,7 @@ { int i, n; int window_w, window_h; - SDL_Rect area, *position, *velocity; + SDL_Rect *position, *velocity; SDL_SelectRenderer(window); @@ -291,8 +291,8 @@ /* Print out some timing information */ now = SDL_GetTicks(); if (now > then) { - printf("%2.2f frames per second\n", - ((double) frames * 1000) / (now - then)); + double fps = ((double) frames * 1000) / (now - then); + printf("%2.2f frames per second\n", fps); } quit(0); }