diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-04-27 15:02:32 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-04-27 15:43:31 +0200 |
commit | d45ec470519d1075ebf299b74cbb846a0c7d99af (patch) | |
tree | 8c20e535f97ed669e0553e7aa2f9cb4a03965a82 /src/openvg | |
parent | 4a1ae3d1b4e8e032b1c978fcc7e1812e37e1f047 (diff) | |
download | qt4-tools-d45ec470519d1075ebf299b74cbb846a0c7d99af.tar.gz |
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')
-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 80f5b2fd91..eae10c8df2 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, |