summaryrefslogtreecommitdiff
path: root/fps.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-06-03 20:47:41 +0000
committerMatt Turner <mattst88@gmail.com>2008-06-03 20:47:41 +0000
commit33c1f18d3871fc756f381d1a3aee1fdac2ff077e (patch)
treea40710e9435af7da66e53e663d327034fd81ba1d /fps.c
parent15e2da75f4a8550b445a4ba8cb3d21c20beb007f (diff)
Fix a few things picked up by the Compaq C Compiler (on my Alpha)
git-svn-id: svn://mattst88.com/svn/glpong/trunk@16 449aeecc-241a-0410-943f-e2f883e2d7a2
Diffstat (limited to 'fps.c')
-rw-r--r--fps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fps.c b/fps.c
index ca2787a..307a4c3 100644
--- a/fps.c
+++ b/fps.c
@@ -3,19 +3,18 @@
#include "SDL.h"
#include "SDL_opengl.h"
-#include "text.h"
#include "fps.h"
static clock_t start;
static GLfloat fps;
void
-GLPong_FPSInit() {
+GLPong_FPSInit(void) {
start = SDL_GetTicks();
}
INLINE GLfloat
-GLPong_FPSCount() {
+GLPong_FPSCount(void) {
/* 10.0f is the number of frames we let draw before calculating FPS */
fps = 10.0f / (SDL_GetTicks() - start) * 1000; /* 1 sec / 1 millisec == 1000 */
start = SDL_GetTicks();