Simplify gradient_walker_reset()
authorSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 14 Oct 2011 13:04:48 +0000 (09:04 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 15 Oct 2011 14:50:20 +0000 (10:50 -0400)
commitec7c9c2b6865b48b8bd14e4509538f8fcbe93463
tree69cd0c78bf0257f7890f1775d87783be4228564d
parent2d0da8ab8d8fef60ed1bbb9d6b75f66577c3f85d
Simplify gradient_walker_reset()

The code that searches for the closest color stop to the given
position is duplicated across the various repeat modes. Replace the
switch with two if/else constructions, and put the search code between
them.
pixman/pixman-gradient-walker.c