diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-03-27 07:45:09 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-03-27 14:27:01 (GMT) |
commit | 95d189ee0df74497d70449f3967a38c67f5860ae (patch) | |
tree | 18d4ed4bed300cc727a7883eecf3ee1b79a3d90a /tests/arthur | |
parent | 4833b02f80bc5bcd7b0946453f3e6c7bc09b01f6 (diff) | |
download | Qt-95d189ee0df74497d70449f3967a38c67f5860ae.zip Qt-95d189ee0df74497d70449f3967a38c67f5860ae.tar.gz Qt-95d189ee0df74497d70449f3967a38c67f5860ae.tar.bz2 |
Fix mismatch between stroke and fill of ellipses on X11.
When drawing ellipse without stroke we need to use the same width/height
for the fill as we would use for the stroke for the stroke and fill to
match. Filling first and then stroking should produce the same result as
filling and stroking in one go.
Task-number: 249490
Reviewed-by: Trond
Diffstat (limited to 'tests/arthur')
-rw-r--r-- | tests/arthur/data/qps/primitives.qps | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/arthur/data/qps/primitives.qps b/tests/arthur/data/qps/primitives.qps index dcb6516..c4cc92c 100644 --- a/tests/arthur/data/qps/primitives.qps +++ b/tests/arthur/data/qps/primitives.qps @@ -177,3 +177,22 @@ repeat_block drawShapes setPen black 4 translate 75 0 repeat_block drawShapes + +resetMatrix +setRenderHint Antialiasing off +setPen nopen +translate 550 100 +setBrush #7f7f7fff +drawRect -0.5 -0.5 21 21 +setBrush red +drawEllipse 0 0 20 20 +setBrush nobrush +setPen black +drawEllipse 0 0 20 20 + +translate 25 0 +setPen nopen +setBrush #7f7f7fff +drawRect 0 0 20 20 +setBrush red +drawEllipse 0 0 20 20 |