summaryrefslogtreecommitdiff
path: root/source/fitz/output-pcl.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-05-23 17:44:09 +0100
committerRobin Watts <robin.watts@artifex.com>2016-05-23 17:48:53 +0100
commita0a9ce485579352ce9c3c4568c07e56b7029a8c8 (patch)
tree6e3e814ea2d79d5796eb74b5d31bc9ad13740f39 /source/fitz/output-pcl.c
parent36f41bc1ace9a986d9f021a777c6b9cfe6b62f9c (diff)
downloadmupdf-a0a9ce485579352ce9c3c4568c07e56b7029a8c8.tar.xz
Bug 696795: Proper fix.
When affine plotting with linear interpolation, we need to perform different calculations for the texture and for the edge of the shape. The edge of the shape needs to be calculated in exactly the same way as for non-linear interpolated shapes. The 'texture' position needs to be offset by 1/2 a texture unit in each direction so that the 'pure' color is given in the middle of the texture cells image, not in the top left corner. To achieve these aims, we actually offset the u/v positions by 1/2 (32768, given the fixed point we are using) and adjust for this in the boundary tests. I have a test file that shows this working, which I will attach to the bug, and add to the regression suite.
Diffstat (limited to 'source/fitz/output-pcl.c')
0 files changed, 0 insertions, 0 deletions