projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.22.tar.gz
[xscreensaver]
/
hacks
/
glx
/
providence.c
diff --git
a/hacks/glx/providence.c
b/hacks/glx/providence.c
index 1face865e3ff8477117f8b89e37d68bea29b9084..bd307b99a1cb37a8fb6aab9f82851ac3ae230469 100644
(file)
--- a/
hacks/glx/providence.c
+++ b/
hacks/glx/providence.c
@@
-42,21
+42,16
@@
static int eye;
static XrmOptionDescRec opts[] = {
static int eye;
static XrmOptionDescRec opts[] = {
- {(char *) "-eye",
- (char *) ".providence.eye", XrmoptionNoArg, (caddr_t) "on"},
-
- {(char *) "+eye",
- (char *) ".providence.eye", XrmoptionNoArg, (caddr_t) "off"}
+ {"-eye", ".providence.eye", XrmoptionNoArg, "on"},
+ {"+eye", ".providence.eye", XrmoptionNoArg, "off"}
};
static argtype vars[] = {
};
static argtype vars[] = {
- {(caddr_t *) &eye,
- (char *) "eye", (char *) "Eye", (char *) DEF_EYE, t_Bool}
+ {&eye, "eye", "Eye", DEF_EYE, t_Bool}
};
static OptionStruct desc[] = {
};
static OptionStruct desc[] = {
- {(char *) "-/+eye",
- (char *) "turn on/off eye of providence"}
+ {"-/+eye", "turn on/off eye of providence"}
};
ModeSpecOpt providence_opts = {
};
ModeSpecOpt providence_opts = {
@@
-384,6
+379,10
@@
void draw_glory(void) {
glVertex3f(-0.75, -0.75, 0.0);
glVertex3f(0.75, -0.75, 0.0);
glVertex3f(0.0, 0.75, 0.0);
glVertex3f(-0.75, -0.75, 0.0);
glVertex3f(0.75, -0.75, 0.0);
glVertex3f(0.0, 0.75, 0.0);
+
+ glVertex3f(0.0, 0.75, 0.0);
+ glVertex3f(0.75, -0.75, 0.0);
+ glVertex3f(-0.75, -0.75, 0.0);
glEnd();
return;
}
glEnd();
return;
}
@@
-526,9
+525,9
@@
void draw_eye2(void) {
/* draw wireeye */
if(wire) {
glBegin(GL_TRIANGLES);
/* draw wireeye */
if(wire) {
glBegin(GL_TRIANGLES);
- glVertex3f(-0.25, -0.25, 0.0);
- glVertex3f(0.25, -0.25, 0.0);
glVertex3f(0.0, 0.25, 0.0);
glVertex3f(0.0, 0.25, 0.0);
+ glVertex3f(0.25, -0.25, 0.0);
+ glVertex3f(-0.25, -0.25, 0.0);
glEnd();
return;
}
glEnd();
return;
}