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.01.tar.gz
[xscreensaver]
/
hacks
/
critical.c
diff --git
a/hacks/critical.c
b/hacks/critical.c
index 1e8f3a1ab19731ca7283f51a35402ef7647581a7..5a6fae2a8014324eb9422a0cc53a6befb3801e3f 100644
(file)
--- a/
hacks/critical.c
+++ b/
hacks/critical.c
@@
-199,8
+199,8
@@
setup_colormap (Display *dpy, XWindowAttributes *wattr,
/* Make a colormap */
*n_colors = get_integer_resource ("ncolors", "Integer");
/* Make a colormap */
*n_colors = get_integer_resource ("ncolors", "Integer");
- if (*n_colors <
2
)
- *n_colors =
2
;
+ if (*n_colors <
3
)
+ *n_colors =
3
;
*colors = (XColor *) calloc (sizeof(XColor), *n_colors);
if (!*colors)
*colors = (XColor *) calloc (sizeof(XColor), *n_colors);
if (!*colors)
@@
-384,11
+384,3
@@
screenhack (Display *dpy, Window window)
i_restart = (i_restart + 1) % n_restart;
}
}
i_restart = (i_restart + 1) % n_restart;
}
}
-
-
-/*
- * Local variables:
- * c-indent-mode: gnu
- * compile-command "make critical && ./critical"
- * End:
- */