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.36.tar.gz
[xscreensaver]
/
utils
/
spline.c
diff --git
a/utils/spline.c
b/utils/spline.c
index d2d447771ae6a98469b18b6a3af6161f83a4ec81..1a73ea61b3edb0df1b526758a9e22123d9b1dc7f 100644
(file)
--- a/
utils/spline.c
+++ b/
utils/spline.c
@@
-66,7
+66,7
@@
make_spline (unsigned int size)
static void
grow_spline_points (spline *s)
{
static void
grow_spline_points (spline *s)
{
- s->allocated_points
*= 2
;
+ s->allocated_points
= 10 + (s->allocated_points * 1.3)
;
s->points =
(XPoint*)realloc (s->points, s->allocated_points * sizeof (XPoint));
if (!s->points) abort();
s->points =
(XPoint*)realloc (s->points, s->allocated_points * sizeof (XPoint));
if (!s->points) abort();