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.37.tar.gz
[xscreensaver]
/
hacks
/
glx
/
glforestfire.c
diff --git
a/hacks/glx/glforestfire.c
b/hacks/glx/glforestfire.c
index e880cfa19b9cced70ae8ef939d88d2197db51250..e81d51167f497be514660ceef31cf34bc24556f5 100644
(file)
--- a/
hacks/glx/glforestfire.c
+++ b/
hacks/glx/glforestfire.c
@@
-931,14
+931,7
@@
init_fire(ModeInfo * mi)
{
firestruct *fs;
{
firestruct *fs;
- /* allocate the main fire table if needed */
- if (fire == NULL) {
- if ((fire = (firestruct *) calloc(MI_NUM_SCREENS(mi),
- sizeof(firestruct))) == NULL)
- return;
- }
-
- /* initialise the per screen fire structure */
+ MI_INIT (mi, fire, 0);
fs = &fire[MI_SCREEN(mi)];
fs->np = MI_COUNT(mi);
fs->fog = do_fog;
fs = &fire[MI_SCREEN(mi)];
fs->np = MI_COUNT(mi);
fs->fog = do_fog;