projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-3.03.tar.gz
[xscreensaver]
/
utils
/
colors.c
diff --git
a/utils/colors.c
b/utils/colors.c
index 86b134426b44306620951295d3b629e5f2913b4e..b568a24dd11d9379b69034746bc1b855d3bc76ee 100644
(file)
--- a/
utils/colors.c
+++ b/
utils/colors.c
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 1997 Jamie Zawinski <jwz@
netscape.com
>
+/* xscreensaver, Copyright (c) 1997 Jamie Zawinski <jwz@
jwz.org
>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-50,7
+50,7
@@
allocate_writable_colors (Display *dpy, Colormap cmap,
while (got < desired
&& requested > 0)
{
while (got < desired
&& requested > 0)
{
- if (desired - got
>
requested)
+ if (desired - got
<
requested)
requested = desired - got;
if (XAllocColorCells (dpy, cmap, False, 0, 0, new_pixels, requested))
requested = desired - got;
if (XAllocColorCells (dpy, cmap, False, 0, 0, new_pixels, requested))
@@
-494,7
+494,7
@@
make_smooth_colormap (Display *dpy, Visual *visual, Colormap cmap,
if (dh < 0) dh = -dh;
if (dh > 0.5) dh = 0.5 - (dh - 0.5);
distance = sqrt ((dh * dh) +
if (dh < 0) dh = -dh;
if (dh > 0.5) dh = 0.5 - (dh - 0.5);
distance = sqrt ((dh * dh) +
- ((s[j] - s[i]) * (s[j] -
v
[i])) +
+ ((s[j] - s[i]) * (s[j] -
s
[i])) +
((v[j] - v[i]) * (v[j] - v[i])));
if (distance < 0.2)
goto REPICK_THIS_COLOR;
((v[j] - v[i]) * (v[j] - v[i])));
if (distance < 0.2)
goto REPICK_THIS_COLOR;