ftp://ftp.linux.ncsu.edu/mirror/ftp.redhat.com/pub/redhat/linux/enterprise/4/en/os...
[xscreensaver] / hacks / glx / atlantis.c
index 9e4a449d7052d883cf1c371e6414c61cfcf1963e..b7afd8cbbe022e8ac4518d89324d1b1b783b412f 100644 (file)
@@ -29,7 +29,7 @@ static const char sccsid[] = "@(#)atlantis.c  5.08 2003/04/09 xlockmore";
  * Thanks goes also to Brian Paul for making it possible and inexpensive
  * to use OpenGL at home.
  *
- * My e-mail address is lassauge@mail.dotcom.fr
+ * My e-mail address is lassauge@users.sourceforge.net
  *
  * Eric Lassauge  (May-13-1998)
  *
@@ -57,7 +57,6 @@ static const char sccsid[] = "@(#)atlantis.c  5.08 2003/04/09 xlockmore";
  *                        Add support for -/+ wireframe (t'was so easy to do!)
  *
  * TODO : 
- *        - add a sort of background image or random bg color
  *        - better handling of sizes and speeds
  *        - test standalone and module modes
  *        - purify it (!)
@@ -138,11 +137,11 @@ static int do_texture;
 static int do_gradient;
 static XrmOptionDescRec opts[] =
 {
-     {"-whalespeed", ".atlantis.whalespeed", XrmoptionSepArg, (caddr_t) NULL},
-     {"-texture",    ".atlantis.texture",    XrmoptionNoArg, (caddr_t)"true"},
-     {"+texture",    ".atlantis.texture",    XrmoptionNoArg, (caddr_t)"false"},
-     {"-gradient",   ".atlantis.gradient",   XrmoptionNoArg, (caddr_t)"true"},
-     {"+gradient",   ".atlantis.gradient",   XrmoptionNoArg, (caddr_t)"false"},
+     {"-whalespeed", ".atlantis.whalespeed", XrmoptionSepArg, 0},
+     {"-texture",    ".atlantis.texture",    XrmoptionNoArg, "true"},
+     {"+texture",    ".atlantis.texture",    XrmoptionNoArg, "false"},
+     {"-gradient",   ".atlantis.gradient",   XrmoptionNoArg, "true"},
+     {"+gradient",   ".atlantis.gradient",   XrmoptionNoArg, "false"},
 };
 
 static argtype vars[] =
@@ -155,7 +154,8 @@ static argtype vars[] =
 static OptionStruct desc[] =
 {
        {"-whalespeed num", "speed of whales and the dolphin"},
-       {"-texture num",    "whether to introduce water-like distortion"}
+       {"-texture",        "whether to introduce water-like distortion"},
+       {"-gradient",       "whether to introduce gradient-filled background"},
 };
 
 ModeSpecOpt atlantis_opts =