Fixed wrong rendering offset / clipping with shadowBlur in Canvas.
authorSamuel Rødal <samuel.rodal@digia.com>
Mon, 29 Apr 2013 13:36:09 +0000 (15:36 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 3 May 2013 14:28:57 +0000 (16:28 +0200)
commit030ebca1f74dfb6f858bc4e2c594bd2075ca189c
tree7f609a4728c0785d4609e395833d9c92a9654750
parent98023c7eba3205b85b2ad0c107ce72072a2b0bba
Fixed wrong rendering offset / clipping with shadowBlur in Canvas.

If the item being rendered didn't have a bounding rect starting in the
origin the shadow path would be get an additional offset equal to the
distance of the item from the origin. Also, the stroke's shadow did not
take the pen width into account, causing clipping artifacts.

Combine all the common shadow generating code into a single function,
and avoid rendering into an intermediate image that is then blitted into
a larger image.

Task-number: QTBUG-30914
Change-Id: I16c7c15897ab8e2d46f37da835f75f97fe680863
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
src/quick/items/context2d/qquickcontext2dcommandbuffer.cpp