projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://svn.poeml.de/viewvc/ppc/src-unpacked/xscreensaver/xscreensaver-4.12.tar.bz2...
[xscreensaver]
/
hacks
/
glx
/
atlantis.c
diff --git
a/hacks/glx/atlantis.c
b/hacks/glx/atlantis.c
index d37998954977d62cd442aab77f5209bf329ea5c8..e7fc50f1d7d00f00c1e7e05f2aeba865168a26d2 100644
(file)
--- a/
hacks/glx/atlantis.c
+++ b/
hacks/glx/atlantis.c
@@
-1,7
+1,7
@@
/* atlantis --- Shows moving 3D sea animals */
#if !defined( lint ) && !defined( SABER )
/* atlantis --- Shows moving 3D sea animals */
#if !defined( lint ) && !defined( SABER )
-static const char sccsid[] = "@(#)atlantis.c
1.3 98/06/18
xlockmore";
+static const char sccsid[] = "@(#)atlantis.c
5.08 2003/04/09
xlockmore";
#endif
#endif
@@
-30,7
+30,7
@@
static const char sccsid[] = "@(#)atlantis.c 1.3 98/06/18 xlockmore";
* Thanks goes also to Brian Paul for making it possible and inexpensive
* to use OpenGL at home.
*
* Thanks goes also to Brian Paul for making it possible and inexpensive
* to use OpenGL at home.
*
- * My e-mail address is lassauge@
sage
m.fr
+ * My e-mail address is lassauge@
mail.dotco
m.fr
*
* Eric Lassauge (May-13-1998)
*
*
* Eric Lassauge (May-13-1998)
*
@@
-201,7
+201,7
@@
InitFishs(atlantisstruct * ap)
ap->sharks[i].v = 1.0;
}
ap->sharks[i].v = 1.0;
}
- /* Random whae direction */
+ /* Random wha
l
e direction */
ap->whaledir = LRAND() & 1;
ap->dolph.x = 30000.0;
ap->whaledir = LRAND() & 1;
ap->dolph.x = 30000.0;
@@
-249,6
+249,7
@@
Init(ModeInfo *mi)
{0.4, 0.4, 0.4, 1.0};
static float lmodel_localviewer[] =
{0.0};
{0.4, 0.4, 0.4, 1.0};
static float lmodel_localviewer[] =
{0.0};
+ float fblue = 0.0, fgreen;
glFrontFace(GL_CCW);
glFrontFace(GL_CCW);
@@
-325,7
+326,10
@@
Init(ModeInfo *mi)
InitFishs(ap);
InitFishs(ap);
- glClearColor(0.0, 0.39, 0.7, 0.0);
+ /* Add a little randomness */
+ fblue = ((float) (NRAND(30)) / 100.0) + 0.70;
+ fgreen = fblue * 0.56;
+ glClearColor(0.0, fgreen, fblue, 0.0);
}
void
}
void
@@
-360,10
+364,10
@@
clear_tank (atlantisstruct * ap)
if (do_gradient && !ap->wire)
{
if (do_gradient && !ap->wire)
{
- static GL
int gradient_list = -1
;
- static GL
int gradient_tex = -1
;
+ static GL
uint gradient_list = 0
;
+ static GL
uint gradient_tex = 0
;
- if (gradient_list ==
-1
)
+ if (gradient_list ==
0
)
{
unsigned char *pixels = 0;
int start = 64;
{
unsigned char *pixels = 0;
int start = 64;