summaryrefslogtreecommitdiffstats
path: root/tests/arthur/common
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-05 13:36:30 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-05-05 13:42:22 (GMT)
commitfde7475bcf9c10522a8170e6eb8fb9a8fadc21cd (patch)
tree5fd8e43395c2a2394cdf562efe39490d32d9f235 /tests/arthur/common
parentd89d1eb47e69c2c2dc1121ef92fd08ef983e3e63 (diff)
downloadQt-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')
-rw-r--r--tests/arthur/common/images.qrc1
-rw-r--r--tests/arthur/common/images/borderimage.pngbin0 -> 826 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/tests/arthur/common/images.qrc b/tests/arthur/common/images.qrc
index 8e94760..060b52c 100644
--- a/tests/arthur/common/images.qrc
+++ b/tests/arthur/common/images.qrc
@@ -3,6 +3,7 @@
<qresource>
<file>images/alpha.png</file>
<file>images/border.png</file>
+ <file>images/borderimage.png</file>
<file>images/dome_argb32.png</file>
<file>images/dome_indexed.png</file>
<file>images/dome_mono_palette.png</file>
diff --git a/tests/arthur/common/images/borderimage.png b/tests/arthur/common/images/borderimage.png
new file mode 100644
index 0000000..f7f6b66
--- /dev/null
+++ b/tests/arthur/common/images/borderimage.png
Binary files differ