Restructure the flags computation in compute_image_info().
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Mon, 15 Feb 2010 00:18:35 +0000 (19:18 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 25 Feb 2010 04:23:52 +0000 (23:23 -0500)
commit3db76b90049f23723a0519d572b9cda7c672f7d5
treecc545be2636344ad9c4d95a6e0a118512c4e3cb7
parentac44db334066f68a837914a52d8d1368c85161ad
Restructure the flags computation in compute_image_info().

Restructure the code to use switches instead of ifs. This saves a few
comparisons and make the code slightly easier to follow. Also add some
comments.
pixman/pixman-image.c