qpa: Fix rendering issue in blitter engine (negative scaling factors)
authorJulien Brianceau <jbrianceau@nds.com>
Wed, 7 Nov 2012 10:01:08 +0000 (11:01 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 7 Nov 2012 13:19:00 +0000 (14:19 +0100)
commit07ea3cf0b3883979e84bd91a5dc6a7a126de3123
tree0f7164f0dafc3b4c637f07f445e6945884930386
parent2027f204b5deba93135349da27e58c9d6f6a8aed
qpa: Fix rendering issue in blitter engine (negative scaling factors)

A 180° rotation results in a TxScale QTransform with negative scaling
factors (x=-1.0 y=-1.0). This is not properly handled by blitter paint
engine yet, so use software rendering fallback in this case.

This rendering issue can be seen when using "-webkit-transform" CSS
property in WebKit with DirectFB QPA platform.

Change-Id: Iee496b6bf0c90ffe36c4235ceaa2c80f296b2ca4
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/gui/painting/qpaintengine_blitter.cpp
tests/auto/gui/painting/qpainter/tst_qpainter.cpp