Rename color_correct() to round_color()
authorSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 20 Dec 2011 00:53:28 +0000 (19:53 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 10 Jan 2012 14:04:45 +0000 (09:04 -0500)
commit0053a9f8694c837388b78ae26fe81979d0327d28
treed55de21d0fe45d2ee99a9b6b2a9ffa7512aecfd8
parent55a010bf31d2eaf71126bdf93eca99fc02037535
Rename color_correct() to round_color()

And do the rounding from float to int in the same way cairo does: by
multiplying with (1 << width), then subtracting one when the input was 1.0.
test/composite.c
test/utils.c
test/utils.h