diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-05-23 17:44:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-05-23 17:48:53 +0100 |
commit | a0a9ce485579352ce9c3c4568c07e56b7029a8c8 (patch) | |
tree | 6e3e814ea2d79d5796eb74b5d31bc9ad13740f39 /source/tools | |
parent | 36f41bc1ace9a986d9f021a777c6b9cfe6b62f9c (diff) | |
download | mupdf-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/tools')
0 files changed, 0 insertions, 0 deletions