projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2bfc66
)
make sure rotation plugged into sin/cos lookup tables is always positive, fixes FP...
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 9 May 2001 17:14:19 +0000
(17:14 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 9 May 2001 17:14:19 +0000
(17:14 +0000)
progs/samples/star.c
patch
|
blob
|
history
diff --git
a/progs/samples/star.c
b/progs/samples/star.c
index 62d7d8548524fddd2c4cff094ef048917aab48c1..570c3e19f9d2228e915277e4b00bc1c062a3976b 100644
(file)
--- a/
progs/samples/star.c
+++ b/
progs/samples/star.c
@@
-129,6
+129,9
@@
void MoveStars(void)
if (stars[n].rotation > MAXANGLES) {
stars[n].rotation = 0.0;
}
+ else if (stars[n].rotation < 0.0) {
+ stars[n].rotation += 360.0;
+ }
}
}