From e70782a501e20cad5730ac2053bdcfb2e079428b Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Tue, 3 Aug 2010 16:28:32 +0000 Subject: [PATCH] Slow down a bit the cube spinning, and fix a warning. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37874 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kits/opengl/glut/game_mode/game_mode.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tests/kits/opengl/glut/game_mode/game_mode.c b/src/tests/kits/opengl/glut/game_mode/game_mode.c index 2e25e73b2c..8d1c23a250 100644 --- a/src/tests/kits/opengl/glut/game_mode/game_mode.c +++ b/src/tests/kits/opengl/glut/game_mode/game_mode.c @@ -14,7 +14,7 @@ void draw_cube(void); 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 @@ display(void) void idle(void) { - spin += 1.0; + spin += 0.5; if (spin > 360.0) spin = 0.0; @@ -166,10 +166,9 @@ on_exit(void) 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;