diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-04-27 13:02:32 (GMT) |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-04-27 13:43:31 (GMT) |
commit | d45ec470519d1075ebf299b74cbb846a0c7d99af (patch) | |
tree | 8c20e535f97ed669e0553e7aa2f9cb4a03965a82 /src/openvg/qpixmapdata_vg.cpp | |
parent | 4a1ae3d1b4e8e032b1c978fcc7e1812e37e1f047 (diff) | |
download | Qt-d45ec470519d1075ebf299b74cbb846a0c7d99af.zip Qt-d45ec470519d1075ebf299b74cbb846a0c7d99af.tar.gz Qt-d45ec470519d1075ebf299b74cbb846a0c7d99af.tar.bz2 |
Upload VGImage data when drawing pixmaps that are being painted into.
When a painter is open on a pixmap's underlying QVolatileImage, it is
better to upload the VGImage content every time the pixmap is drawn
on the screen, in order to enable showing animations that are created
by continously rendering into the same pixmap and keeping the same
painter open.
Task-number: QT-4002
Reviewed-by: Jason Barron
Diffstat (limited to 'src/openvg/qpixmapdata_vg.cpp')
-rw-r--r-- | src/openvg/qpixmapdata_vg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qpixmapdata_vg.cpp b/src/openvg/qpixmapdata_vg.cpp index 80f5b2f..eae10c8 100644 --- a/src/openvg/qpixmapdata_vg.cpp +++ b/src/openvg/qpixmapdata_vg.cpp @@ -377,7 +377,7 @@ VGImage QVGPixmapData::toVGImage() QVGImagePool::instance()->useImage(this); } - if (!source.isNull() && recreate) { + if (!source.isNull() && (recreate || source.paintingActive())) { source.beginDataAccess(); vgImageSubData (vgImage, |