projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://packetstormsecurity.org/UNIX/admin/xscreensaver-4.16.tar.gz
[xscreensaver]
/
hacks
/
pong.c
diff --git
a/hacks/pong.c
b/hacks/pong.c
index bcfc3fc734d657d5624ce1fa347901f034e65980..aa7c6049eb1e6e9569ce5762b1293c9d9aa8641d 100644
(file)
--- a/
hacks/pong.c
+++ b/
hacks/pong.c
@@
-54,7
+54,6
@@
typedef struct _ball {
int h;
} Ball;
int h;
} Ball;
-static int delay;
Paddle l_paddle;
Paddle r_paddle;
Ball ball;
Paddle l_paddle;
Paddle r_paddle;
Ball ball;
@@
-255,9
+254,6
@@
init_pong (Display *dpy, Window window)
}
#endif
}
#endif
- delay = get_integer_resource ("delay", "Integer");
- if (delay < 0) delay = 0;
-
/*Init the paddles*/
l_paddle.x = 8;
l_paddle.y = 100;
/*Init the paddles*/
l_paddle.x = 8;
l_paddle.y = 100;
@@
-478,7
+474,8
@@
play_pong (void)
char *progclass = "pong";
char *defaults [] = {
char *progclass = "pong";
char *defaults [] = {
- "*delay: 10000",
+ ".background: black",
+ ".foreground: white",
"*speed: 6",
ANALOGTV_DEFAULTS
"*TVContrast: 150",
"*speed: 6",
ANALOGTV_DEFAULTS
"*TVContrast: 150",
@@
-486,7
+483,6
@@
char *defaults [] = {
};
XrmOptionDescRec options [] = {
};
XrmOptionDescRec options [] = {
- { "-delay", ".delay", XrmoptionSepArg, 0 },
{ "-percent", ".percent", XrmoptionSepArg, 0 },
{ "-speed", ".speed", XrmoptionSepArg, 0 },
ANALOGTV_OPTIONS
{ "-percent", ".percent", XrmoptionSepArg, 0 },
{ "-speed", ".speed", XrmoptionSepArg, 0 },
ANALOGTV_OPTIONS