summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/borderimage.qps
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-07 11:12:39 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-05-07 11:25:48 (GMT)
commit20d88b4d390e2e11079f62ab9f472c30f7c5b11d (patch)
treeafd34f0369b76b5d25572f5f42bd7600d9ab12fc /tests/arthur/data/qps/borderimage.qps
parent27aae6a5bb4858897547f2f436bc1cdf2e8bfbd4 (diff)
downloadQt-20d88b4d390e2e11079f62ab9f472c30f7c5b11d.zip
Qt-20d88b4d390e2e11079f62ab9f472c30f7c5b11d.tar.gz
Qt-20d88b4d390e2e11079f62ab9f472c30f7c5b11d.tar.bz2
Fixed some inconsistencies for image drawing on non-integer coords.
The fix for 1x1 source rect image drawing in change ffbb3c1a2aee4134dce80cd144a26bf32865b698 was incorrect for transforms with type >= TxScale. The aliased coordinate delta needs to be applied in device coordinates, not in logical coordinates. Also specialize the non-antialiased TxScale case by simply calling fillRect_normalized directly, avoiding having to scan convert the rectangle manually. Task-number: 251561 Reviewed-by: Trond
Diffstat (limited to 'tests/arthur/data/qps/borderimage.qps')
-rw-r--r--tests/arthur/data/qps/borderimage.qps19
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/arthur/data/qps/borderimage.qps b/tests/arthur/data/qps/borderimage.qps
index 14073fe..8d2e54b 100644
--- a/tests/arthur/data/qps/borderimage.qps
+++ b/tests/arthur/data/qps/borderimage.qps
@@ -123,6 +123,21 @@ end_block one_pixel_border
resetMatrix
+translate 205.1 626.1
+scale 0.4 0.4
+
+repeat_block one_pixel_border
+
+resetMatrix
+
+translate 255.1 624.1
+scale 0.4 0.4
+rotate 10
+
+repeat_block one_pixel_border
+
+resetMatrix
+
setPen red
drawRect 0 0 70 680
@@ -145,5 +160,5 @@ drawText 174 114 "smoothpixmaptransform off"
drawRect 164 128 224 134
drawText 174 252 "smoothpixmaptransform on"
-drawRect 200 520 97 128
-drawText 210 638 "1x1 edges"
+drawRect 200 520 97 188
+drawText 210 698 "1x1 edges"