projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adjusted precision (John Fay)
[freeglut]
/
freeglut-1.3
/
freeglut_display.c
diff --git
a/freeglut-1.3/freeglut_display.c
b/freeglut-1.3/freeglut_display.c
index
d6ce1cb
..
de19841
100644
(file)
--- a/
freeglut-1.3/freeglut_display.c
+++ b/
freeglut-1.3/freeglut_display.c
@@
-100,9
+100,9
@@
void FGAPIENTRY glutSwapBuffers( void )
if (fgState.SwapTime == 0)
fgState.SwapTime = t;
else if (t - fgState.SwapTime > fgState.FPSInterval) {
if (fgState.SwapTime == 0)
fgState.SwapTime = t;
else if (t - fgState.SwapTime > fgState.FPSInterval) {
- float time = 0.001 * (t - fgState.SwapTime);
+ float time = 0.001f * (t - fgState.SwapTime);
float fps = (float) fgState.SwapCount / time;
float fps = (float) fgState.SwapCount / time;
- fprintf(stderr, "FreeGLUT: %d frames in %.2f seconds = %.2f FPS\n",
+ fprintf(stderr, "freeglut: %d frames in %.2f seconds = %.2f FPS\n",
fgState.SwapCount, time, fps);
fgState.SwapTime = t;
fgState.SwapCount = 0;
fgState.SwapCount, time, fps);
fgState.SwapTime = t;
fgState.SwapCount = 0;