In fast_composite_tiled_repeat() don't clone images with a palette
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 1 Jul 2012 10:54:06 +0000 (06:54 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 2 Jul 2012 22:21:21 +0000 (18:21 -0400)
commitcd7ecf548a9e8115226bf0fec174f3abc54becb5
tree6916c62dc45ce46883c6705fa90f7db87e79f764
parent7b20ad39f778d765566d3f2c5f7c50964100efc1
In fast_composite_tiled_repeat() don't clone images with a palette

In fast_composite_tiled_repeat() if the source image is less than a
certain constant width, a clone is created which is then
pre-repeated. However, the source image's palette, if it has one, is
not cloned, so for indexed images, the pre-repeating would crash.

Fix this by not doing any pre-repeating for images with a palette set.
pixman/pixman-fast-path.c