Fix context2d transform issues
authorCharles Yin <yinyunqiao@gmail.com>
Tue, 27 Mar 2012 14:06:28 +0000 (00:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 30 Mar 2012 03:18:32 +0000 (05:18 +0200)
commit200f783745b571725f899f08c34d1155be632523
tree146c481f5ad5bbb900acf9fbf9251a68d633c266
parent652fa5b7a44d2d7bb38126b4659e7347caa5d4a8
Fix context2d transform issues

After calling transform related methods, the current path should be transformed with the same method but in reversal mode.
So that during painting, the painter will apply the CTM to this path again, otherwise path will be transformed twice.

Change-Id: I7e12bdff82dabb408f47152ba07b608872d4093f
Task-number: QTBUG-24988
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/context2d/qquickcontext2d.cpp
src/quick/items/context2d/qquickcontext2d_p.h
src/quick/items/context2d/qquickcontext2dcommandbuffer.cpp
tests/auto/quick/qquickcanvasitem/data/tst_arc.qml
tests/auto/quick/qquickcanvasitem/data/tst_arcto.qml
tests/auto/quick/qquickcanvasitem/data/tst_canvas.qml
tests/auto/quick/qquickcanvasitem/data/tst_composite.qml
tests/auto/quick/qquickcanvasitem/data/tst_path.qml