diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-05-05 13:36:30 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-05-05 13:42:22 (GMT) |
commit | fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd (patch) | |
tree | 5fd8e43395c2a2394cdf562efe39490d32d9f235 /tests/arthur/common/images | |
parent | d89d1eb47e69c2c2dc1121ef92fd08ef983e3e63 (diff) | |
download | Qt-fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd.zip Qt-fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd.tar.gz Qt-fde7475bcf9c10522a8170e6eb8fb9a8fadc21cd.tar.bz2 |
Ensured correct rounding of scaled image drawing at non-integer coords.
Images coordinates should simply be rounded and are not to be subject
to the aliased coordinate delta. The patch also adds a tiny delta in
QSpanData::setupMatrix() to ensure coordinates for fetching from source
images are rounded the opposite direction of the target rectangle.
This removes a lot of artifacts when trying to do border-image based
drawing on non-integer coordinates. A new qps test for border-image
drawing is included.
Task-number: 251561
Reviewed-by: Trond
Diffstat (limited to 'tests/arthur/common/images')
-rw-r--r-- | tests/arthur/common/images/borderimage.png | bin | 0 -> 826 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/tests/arthur/common/images/borderimage.png b/tests/arthur/common/images/borderimage.png Binary files differnew file mode 100644 index 0000000..f7f6b66 --- /dev/null +++ b/tests/arthur/common/images/borderimage.png |