projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.38.tar.gz
[xscreensaver]
/
hacks
/
glx
/
glschool.c
diff --git
a/hacks/glx/glschool.c
b/hacks/glx/glschool.c
index 158a42347674a6f1e715ffaf038d787567757ded..49cfc1154a66025919fb6beaaac0804db1da5e4f 100644
(file)
--- a/
hacks/glx/glschool.c
+++ b/
hacks/glx/glschool.c
@@
-16,9
+16,9
@@
"*showFPS: False \n" \
"*wireframe: False \n" \
"*showFPS: False \n" \
"*wireframe: False \n" \
-#define
refresh_glschool
(0)
+#define
free_glschool
(0)
#define release_glschool (0)
#define release_glschool (0)
-#define glschool_handle_event (
0
)
+#define glschool_handle_event (
xlockmore_no_events
)
#undef countof
#define countof(x) (sizeof((x))/sizeof((*x)))
#undef countof
#define countof(x) (sizeof((x))/sizeof((*x)))
@@
-142,13
+142,7
@@
init_glschool(ModeInfo *mi)
Bool wire = MI_IS_WIREFRAME(mi);
glschool_configuration *sc;
Bool wire = MI_IS_WIREFRAME(mi);
glschool_configuration *sc;
- if (!scs) {
- scs = (glschool_configuration *)calloc(MI_NUM_SCREENS(mi), sizeof(glschool_configuration));
- if (!scs) {
- perror("init_glschool: ");
- exit(1);
- }
- }
+ MI_INIT (mi, scs);
sc = &scs[MI_SCREEN(mi)];
sc->drawGoal = DoDrawGoal;
sc = &scs[MI_SCREEN(mi)];
sc->drawGoal = DoDrawGoal;