X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fsproingies.c;h=d79ffe579d10a660cc3858465d84f66c8f4e4563;hb=3d9140a05b5272fed0883a0af0a71e30ef44d47f;hp=e48c639a806c60e5aedea09625517604bfe74331;hpb=f3e0240915ed9f9b3a61781f5c7002d587563fe0;p=xscreensaver diff --git a/hacks/glx/sproingies.c b/hacks/glx/sproingies.c index e48c639a..d79ffe57 100644 --- a/hacks/glx/sproingies.c +++ b/hacks/glx/sproingies.c @@ -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) {