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.35.tar.gz
[xscreensaver]
/
hacks
/
phosphor.c
diff --git
a/hacks/phosphor.c
b/hacks/phosphor.c
index 825ad56931d25ff9858ae5a2744ed8841924cb8e..1238048976d0e3dd6c8eebb1fa36e52f464acdf9 100644
(file)
--- a/
hacks/phosphor.c
+++ b/
hacks/phosphor.c
@@
-17,7
+17,7
@@
# include "config.h"
#endif /* HAVE_CONFIG_H */
# include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifndef HAVE_
COCOA
+#ifndef HAVE_
JWXYZ
# include <X11/Intrinsic.h>
#endif
# include <X11/Intrinsic.h>
#endif
@@
-220,7
+220,7
@@
phosphor_init (Display *dpy, Window window)
state->gcs = (GC *) calloc (sizeof(GC), state->ticks + 1);
{
state->gcs = (GC *) calloc (sizeof(GC), state->ticks + 1);
{
- int ncolors = MAX (
0
, state->ticks - 3);
+ int ncolors = MAX (
1
, state->ticks - 3);
XColor *colors = (XColor *) calloc (ncolors, sizeof(XColor));
int h1, h2;
double s1, s2, v1, v2;
XColor *colors = (XColor *) calloc (ncolors, sizeof(XColor));
int h1, h2;
double s1, s2, v1, v2;
@@
-426,7
+426,7
@@
capture_font_bits (p_state *state)
GCCapStyle | GCLineWidth),
&state->gcv);
GCCapStyle | GCLineWidth),
&state->gcv);
-#ifdef HAVE_
COCOA
+#ifdef HAVE_
JWXYZ
jwxyz_XSetAntiAliasing (state->dpy, state->gc0, False);
jwxyz_XSetAntiAliasing (state->dpy, state->gc1, False);
#endif
jwxyz_XSetAntiAliasing (state->dpy, state->gc0, False);
jwxyz_XSetAntiAliasing (state->dpy, state->gc1, False);
#endif