spring: Make clip behavior configurable
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 17 Jun 2013 13:15:22 +0000 (09:15 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 17 Jun 2013 13:24:14 +0000 (09:24 -0400)
commit7eec9b32f74bd571a5817a293f4edfe58a2c4290
tree7ccb8193522ebc44ddb55e7a26d958136caad88e
parentc24744ec91f6eebd3e665bf5f374f9c9812e95f4
spring: Make clip behavior configurable

When the spring goes outside the envelope, we have a few options for
bringing it back: either just let it overshoot, bounce off the limit or
just clamp it.  Instead of controlling that with #ifdef, let's make it
a part of the spring state.
src/animation.c
src/compositor.h