[haiku-commits] r37874 - haiku/trunk/src/tests/kits/opengl/glut/game_mode

  • From: philippe.houdoin@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 3 Aug 2010 18:28:32 +0200 (CEST)

Author: phoudoin
Date: 2010-08-03 18:28:32 +0200 (Tue, 03 Aug 2010)
New Revision: 37874
Changeset: http://dev.haiku-os.org/changeset/37874

Modified:
   haiku/trunk/src/tests/kits/opengl/glut/game_mode/game_mode.c
Log:
Slow down a bit the cube spinning, and fix a warning.


Modified: haiku/trunk/src/tests/kits/opengl/glut/game_mode/game_mode.c
===================================================================
--- haiku/trunk/src/tests/kits/opengl/glut/game_mode/game_mode.c        
2010-08-03 16:02:55 UTC (rev 37873)
+++ haiku/trunk/src/tests/kits/opengl/glut/game_mode/game_mode.c        
2010-08-03 16:28:32 UTC (rev 37874)
@@ -14,7 +14,7 @@
 void game_mode(char *mode);
 void dump_game_mode(void);
 void init(void);
-void clean_exit(void);
+void on_exit(void);
 
 float spin = 0;
 
@@ -81,7 +81,7 @@
 void
 idle(void)
 {
-       spin += 1.0;
+       spin += 0.5;
        if (spin > 360.0)
                spin = 0.0;
 
@@ -166,10 +166,9 @@
 void
 game_mode(char *mode)
 {
-       printf("glutGameModeString(\"%s\"): ", mode);
-
        glutGameModeString(mode);
 
+       printf("glutGameModeString(\"%s\"): ", mode);
        if (!glutGameModeGet(GLUT_GAME_MODE_POSSIBLE)) {
                printf("*not* possible!\n");
                return;


Other related posts:

  • » [haiku-commits] r37874 - haiku/trunk/src/tests/kits/opengl/glut/game_mode - philippe . houdoin