http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.16.tar.gz
[xscreensaver] / hacks / pong.c
index bcfc3fc734d657d5624ce1fa347901f034e65980..aa7c6049eb1e6e9569ce5762b1293c9d9aa8641d 100644 (file)
@@ -54,7 +54,6 @@ typedef struct _ball {
   int h;
 } Ball;
 
-static int delay;
 Paddle l_paddle;
 Paddle r_paddle;
 Ball ball;
@@ -255,9 +254,6 @@ init_pong (Display *dpy, Window window)
   }
 #endif
 
-  delay = get_integer_resource ("delay", "Integer");
-  if (delay < 0) delay = 0;
-
   /*Init the paddles*/
   l_paddle.x = 8;
   l_paddle.y = 100;
@@ -478,7 +474,8 @@ play_pong (void)
 char *progclass = "pong";
 
 char *defaults [] = {
-  "*delay:     10000",
+  ".background: black",
+  ".foreground: white",
   "*speed:      6",
   ANALOGTV_DEFAULTS
   "*TVContrast:      150",
@@ -486,7 +483,6 @@ char *defaults [] = {
 };
 
 XrmOptionDescRec options [] = {
-  { "-delay",          ".delay",       XrmoptionSepArg, 0 },
   { "-percent",         ".percent",     XrmoptionSepArg, 0 },
   { "-speed",           ".speed",     XrmoptionSepArg, 0 },
   ANALOGTV_OPTIONS