http://packetstormsecurity.org/UNIX/admin/xscreensaver-3.29.tar.gz
[xscreensaver] / hacks / glx / sproingies.c
index e48c639a806c60e5aedea09625517604bfe74331..d79ffe579d10a660cc3858465d84f66c8f4e4563 100644 (file)
@@ -1,10 +1,14 @@
-/* -*- Mode: C; tab-width: 4 -*-
- * sproingies.c --- 3D sproingies
- */
+/* -*- Mode: C; tab-width: 4 -*- */
+/* sproingies.c - 3D sproingies */
+
 #if !defined( lint ) && !defined( SABER )
-static const char sccsid[] = "@(#)sproingies.c 4.04 97/07/26 xlockmore";
+static const char sccsid[] = "@(#)sproingies.c 4.04 97/07/28 xlockmore";
+
 #endif
-/* Copyright 1996 by Ed Mackey, 12/7/96 freely distributable.
+
+/*-
+ *  sproingies.c - Copyright 1996 by Ed Mackey, freely distributable.
+ *
  * Permission to use, copy, modify, and distribute this software and its
  * documentation for any purpose and without fee is hereby granted,
  * provided that the above copyright notice appear in all copies and that
@@ -16,12 +20,15 @@ static const char sccsid[] = "@(#)sproingies.c      4.04 97/07/26 xlockmore";
  * trade secrets or any patents by this file or any part thereof.  In no
  * event will the author be liable for any lost revenue or profits or
  * other special, indirect and consequential damages.
+ *
+ * Revision History:
+ * 07-Dec-96: Written.
  */
 
 #ifdef STANDALONE
-# include "xlockmoreI.h"                       /* from the xscreensaver distribution */
-#else  /* !STANDALONE */
-# include "xlock.h"         /* from the xlockmore distribution */
+# include "xlockmoreI.h"               /* from the xscreensaver distribution */
+#else /* !STANDALONE */
+# include "xlock.h"            /* from the xlockmore distribution */
 #endif /* !STANDALONE */
 
 #ifdef USE_GL
@@ -589,7 +596,7 @@ ComputeGround(sp_instance * si)
 }
 
 void
-DisplaySproingies(int screen)
+DisplaySproingies(int screen,int pause)
 {
        sp_instance *si = &si_list[screen];
        int         t;
@@ -644,13 +651,13 @@ DisplaySproingies(int screen)
 }
 
 void
-NextSproingieDisplay(int screen)
+NextSproingieDisplay(int screen,int pause)
 {
        NextSproingie(screen);
-       DisplaySproingies(screen);
+        if (pause) usleep(pause);
+       DisplaySproingies(screen,pause);
 }
 
-#if 0
 void
 ReshapeSproingies(int w, int h)
 {
@@ -662,8 +669,6 @@ ReshapeSproingies(int w, int h)
        glLoadIdentity();
 }
 
-#endif
-
 void
 CleanupSproingies(int screen)
 {