diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-01 15:04:50 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-04-02 07:09:29 (GMT) |
commit | 1f9074b743c727165f21149a09fd08e32157faaf (patch) | |
tree | 42b72d24116a55e2edb95a5e657e905b77ad5fde /src/gui/painting/qrasterizer_p.h | |
parent | ea66ff84b5eac1846afcaf80b3d24297be0dce8f (diff) | |
download | Qt-1f9074b743c727165f21149a09fd08e32157faaf.zip Qt-1f9074b743c727165f21149a09fd08e32157faaf.tar.gz Qt-1f9074b743c727165f21149a09fd08e32157faaf.tar.bz2 |
Fix slowdown regression in QGraphicsItem::ItemCoordinateCache
Right before Qt 4.5.0 was released, Alexis and I submitted change
7e9b000ee418ef2d9c8fadb2c6b8870e0335bd5e, which accidentally introduced
a rounding error causing items whose bounding rect contains fractional
numbers (e.g., QRectF(-0.5, -0.5, 11, 11)), to always be drawn with a
one-pixel strech even if otherwise untransformed. This caused a
significant slowdown for pixmap items and any shape item that uses
almost any pen width != 0, if they enable ItemCoordinateCache.
The fix is to consistently use the aligned rectangle both when generating
the cache pixmap and when drawing it.
Reviewed-by: Alexis
Diffstat (limited to 'src/gui/painting/qrasterizer_p.h')
0 files changed, 0 insertions, 0 deletions